mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-28 21:05:45 -05:00
calamares: sidebarTextHighlight for branding
This commit adds support for distribution to define sidebarTextHighlight to their branding.desc file, to control the left panel (sidebar) with highlight behind the current step (isCurrent) text label.
This commit is contained in:
parent
4741c5f279
commit
2d64110150
3 changed files with 6 additions and 3 deletions
|
@ -104,7 +104,8 @@ ProgressTreeDelegate::paintViewStep( QPainter* painter,
|
|||
{
|
||||
painter->setPen( Calamares::Branding::instance()->
|
||||
styleString( Calamares::Branding::SidebarTextSelect ) );
|
||||
painter->setBrush( APP->mainWindow()->palette().background() );
|
||||
painter->setBrush( QColor( Calamares::Branding::instance()->
|
||||
styleString( Calamares::Branding::SidebarTextHighlight ) ) );
|
||||
}
|
||||
|
||||
painter->fillRect( option.rect, painter->brush().color() );
|
||||
|
|
|
@ -71,7 +71,8 @@ QStringList Branding::s_styleEntryStrings =
|
|||
{
|
||||
"sidebarBackground",
|
||||
"sidebarText",
|
||||
"sidebarTextSelect"
|
||||
"sidebarTextSelect",
|
||||
"sidebarTextHighlight"
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -62,7 +62,8 @@ public:
|
|||
{
|
||||
SidebarBackground,
|
||||
SidebarText,
|
||||
SidebarTextSelect
|
||||
SidebarTextSelect,
|
||||
SidebarTextHighlight
|
||||
};
|
||||
|
||||
static Branding* instance();
|
||||
|
|
Loading…
Add table
Reference in a new issue