[libcalamaresui] Improve naming, resolve TODO
This commit is contained in:
parent
992d2d3be0
commit
a7d3630e42
@ -46,12 +46,12 @@ Rectangle {
|
||||
Layout.fillWidth: true;
|
||||
height: 35;
|
||||
radius: 6;
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarBackgroundSelected : Branding.SidebarBackground );
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarBackgroundCurrent : Branding.SidebarBackground );
|
||||
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarTextSelected : Branding.SidebarText );
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarTextCurrent : Branding.SidebarText );
|
||||
text: display;
|
||||
}
|
||||
}
|
||||
@ -77,7 +77,7 @@ Rectangle {
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
x: parent.x + 4;
|
||||
text: qsTr("Show debug information")
|
||||
color: Branding.styleString( mouseArea.containsMouse ? Branding.SidebarTextSelect : Branding.SidebarBackground );
|
||||
color: Branding.styleString( mouseArea.containsMouse ? Branding.SidebarTextCurrent : Branding.SidebarBackground );
|
||||
font.pointSize : 9
|
||||
}
|
||||
|
||||
|
@ -36,9 +36,9 @@ paintViewStep( QPainter* painter, const QStyleOptionViewItem& option, const QMod
|
||||
|
||||
if ( index.row() == index.data( Calamares::ViewManager::ProgressTreeItemCurrentIndex ).toInt() )
|
||||
{
|
||||
painter->setPen( Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarTextSelect ) );
|
||||
painter->setPen( Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarTextCurrent ) );
|
||||
QString textHighlight
|
||||
= Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarTextHighlight );
|
||||
= Calamares::Branding::instance()->styleString( Calamares::Branding::SidebarBackgroundCurrent );
|
||||
if ( textHighlight.isEmpty() )
|
||||
{
|
||||
painter->setBrush( CalamaresApplication::instance()->mainWindow()->palette().window() );
|
||||
|
@ -76,10 +76,8 @@ public:
|
||||
{
|
||||
SidebarBackground,
|
||||
SidebarText,
|
||||
SidebarTextSelect,
|
||||
SidebarTextSelected = SidebarTextSelect, // TODO:3.3:Remove SidebarTextSelect
|
||||
SidebarTextHighlight,
|
||||
SidebarBackgroundSelected = SidebarTextHighlight // TODO:3.3:Remove SidebarTextHighlight
|
||||
SidebarTextCurrent,
|
||||
SidebarBackgroundCurrent,
|
||||
};
|
||||
Q_ENUM( StyleEntry )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user