forked from len0rd/rockbox
Theme Editor: Status bar no longer drawn by default
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27263 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6e40988803
commit
8219cfe988
3 changed files with 6 additions and 13 deletions
|
@ -29,8 +29,7 @@
|
||||||
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
|
RBScreen::RBScreen(const RBRenderInfo& info, bool remote,
|
||||||
QGraphicsItem *parent)
|
QGraphicsItem *parent)
|
||||||
:QGraphicsItem(parent), backdrop(0), project(project),
|
:QGraphicsItem(parent), backdrop(0), project(project),
|
||||||
albumArt(0), defaultStatusBar(true),
|
albumArt(0)
|
||||||
statusBarTexture(":/render/statusbar.png")
|
|
||||||
{
|
{
|
||||||
|
|
||||||
if(remote)
|
if(remote)
|
||||||
|
@ -118,8 +117,6 @@ void RBScreen::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||||
painter->fillRect(0, 0, width, height, bgColor);
|
painter->fillRect(0, 0, width, height, bgColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(defaultStatusBar)
|
|
||||||
painter->fillRect(QRectF(0, 0, width, 8), statusBarTexture);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RBScreen::loadViewport(QString name, RBViewport *view)
|
void RBScreen::loadViewport(QString name, RBViewport *view)
|
||||||
|
|
|
@ -84,8 +84,6 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void disableStatusBar(){ defaultStatusBar = false; }
|
|
||||||
void enableStatusBar(){ defaultStatusBar = true; }
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int width;
|
int width;
|
||||||
|
@ -104,10 +102,6 @@ private:
|
||||||
QList<QString> displayedViewports;
|
QList<QString> displayedViewports;
|
||||||
|
|
||||||
RBAlbumArt* albumArt;
|
RBAlbumArt* albumArt;
|
||||||
|
|
||||||
bool defaultStatusBar;
|
|
||||||
QPixmap statusBarTexture;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // RBSCREEN_H
|
#endif // RBSCREEN_H
|
||||||
|
|
|
@ -628,15 +628,17 @@ bool ParseTreeNode::execTag(const RBRenderInfo& info, RBViewport* viewport)
|
||||||
switch(element->tag->name[1])
|
switch(element->tag->name[1])
|
||||||
{
|
{
|
||||||
case 'd':
|
case 'd':
|
||||||
info.screen()->disableStatusBar();
|
/* %wd */
|
||||||
|
/* Disable SBS rendering */
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 'e':
|
case 'e':
|
||||||
info.screen()->enableStatusBar();
|
/* %we */
|
||||||
|
/* Totally extraneous */
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 'i':
|
case 'i':
|
||||||
info.screen()->disableStatusBar();
|
/* %wi */
|
||||||
viewport->enableStatusBar();
|
viewport->enableStatusBar();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue