Merge branch 'AOSC-Dev-master'
This commit is contained in:
commit
90bedac341
@ -1,3 +1,4 @@
|
|||||||
|
# style.sidebarTextHighlight is optional and defaults to application palette
|
||||||
---
|
---
|
||||||
componentName: default
|
componentName: default
|
||||||
|
|
||||||
@ -25,3 +26,4 @@ style:
|
|||||||
sidebarBackground: "#292F34"
|
sidebarBackground: "#292F34"
|
||||||
sidebarText: "#FFFFFF"
|
sidebarText: "#FFFFFF"
|
||||||
sidebarTextSelect: "#292F34"
|
sidebarTextSelect: "#292F34"
|
||||||
|
sidebarTextHighlight: "#D35400"
|
||||||
|
@ -104,7 +104,12 @@ ProgressTreeDelegate::paintViewStep( QPainter* painter,
|
|||||||
{
|
{
|
||||||
painter->setPen( Calamares::Branding::instance()->
|
painter->setPen( Calamares::Branding::instance()->
|
||||||
styleString( Calamares::Branding::SidebarTextSelect ) );
|
styleString( Calamares::Branding::SidebarTextSelect ) );
|
||||||
|
QString textHighlight = Calamares::Branding::instance()->
|
||||||
|
styleString( Calamares::Branding::SidebarTextHighlight );
|
||||||
|
if ( textHighlight.isEmpty() )
|
||||||
painter->setBrush( APP->mainWindow()->palette().background() );
|
painter->setBrush( APP->mainWindow()->palette().background() );
|
||||||
|
else
|
||||||
|
painter->setBrush( QColor( textHighlight ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
painter->fillRect( option.rect, painter->brush().color() );
|
painter->fillRect( option.rect, painter->brush().color() );
|
||||||
|
@ -71,7 +71,8 @@ const QStringList Branding::s_styleEntryStrings =
|
|||||||
{
|
{
|
||||||
"sidebarBackground",
|
"sidebarBackground",
|
||||||
"sidebarText",
|
"sidebarText",
|
||||||
"sidebarTextSelect"
|
"sidebarTextSelect",
|
||||||
|
"sidebarTextHighlight"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,7 +62,8 @@ public:
|
|||||||
{
|
{
|
||||||
SidebarBackground,
|
SidebarBackground,
|
||||||
SidebarText,
|
SidebarText,
|
||||||
SidebarTextSelect
|
SidebarTextSelect,
|
||||||
|
SidebarTextHighlight
|
||||||
};
|
};
|
||||||
|
|
||||||
static Branding* instance();
|
static Branding* instance();
|
||||||
|
Loading…
Reference in New Issue
Block a user