mirror of https://github.com/cutefishos/calamares
[calamares] Update sidebar and navigation QML
- use the right colors (from branding, not from desktop theme) - apply branding logomain
parent
ff37792dc9
commit
1038de899b
@ -1,36 +1,44 @@
|
||||
import QtQuick 2.3
|
||||
import io.calamares.ui 1.0
|
||||
import io.calamares.core 1.0
|
||||
|
||||
Column {
|
||||
import QtQuick 2.3
|
||||
import QtQuick.Layouts 1.3
|
||||
|
||||
Rectangle {
|
||||
id: hello
|
||||
width: 200
|
||||
height: 100
|
||||
color: "red"
|
||||
id: sideBar;
|
||||
color: Branding.styleString( Branding.SidebarBackground );
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
text: Branding.string(Branding.VersionedName)
|
||||
}
|
||||
}
|
||||
ColumnLayout {
|
||||
anchors.fill: parent;
|
||||
spacing: 0;
|
||||
|
||||
/* perhaps we could show a branding image here */
|
||||
Image {
|
||||
id: logo
|
||||
width: 80;
|
||||
height: width; // square
|
||||
anchors.horizontalCenter: parent.horizontalCenter;
|
||||
source: "file:/" + Branding.imagePath(Branding.ProductLogo);
|
||||
sourceSize.width: width;
|
||||
sourceSize.height: height;
|
||||
}
|
||||
|
||||
Repeater {
|
||||
model: ViewManager
|
||||
Rectangle {
|
||||
width: 200
|
||||
height: 75
|
||||
color: "black"
|
||||
Repeater {
|
||||
model: ViewManager
|
||||
Rectangle {
|
||||
width: 200;
|
||||
height: 75;
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarTextHighlight : Branding.SidebarBackground );
|
||||
|
||||
Text {
|
||||
anchors.centerIn: parent
|
||||
color: index == ViewManager.currentStepIndex ? "green" : "yellow"
|
||||
text: display
|
||||
Text {
|
||||
anchors.centerIn: parent;
|
||||
color: Branding.styleString( index == ViewManager.currentStepIndex ? Branding.SidebarTextSelect : Branding.SidebarText );
|
||||
text: display;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Item {
|
||||
Layout.fillHeight: true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue