Merge pull request #1481 from demmm/calamares
[welcomeq] language bar icon configurable
This commit is contained in:
commit
c48ec6bf94
@ -33,3 +33,5 @@ geoip:
|
|||||||
style: "none"
|
style: "none"
|
||||||
url: "https://geoip.kde.org/v1/ubiquity" # extended XML format
|
url: "https://geoip.kde.org/v1/ubiquity" # extended XML format
|
||||||
selector: "CountryCode" # blank uses default, which is wrong
|
selector: "CountryCode" # blank uses default, which is wrong
|
||||||
|
|
||||||
|
#languageIcon: languages
|
||||||
|
@ -144,16 +144,34 @@ Page
|
|||||||
width: parent.width
|
width: parent.width
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
focus: true
|
focus: true
|
||||||
Image {
|
|
||||||
|
Loader {
|
||||||
|
id: imLoader
|
||||||
|
|
||||||
|
Component {
|
||||||
|
id: icon
|
||||||
|
Kirigami.Icon {
|
||||||
|
source: config.languageIcon
|
||||||
|
height: 48
|
||||||
|
width: 48
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Component {
|
||||||
id: image
|
id: image
|
||||||
|
Image {
|
||||||
height: 48
|
height: 48
|
||||||
fillMode: Image.PreserveAspectFit
|
fillMode: Image.PreserveAspectFit
|
||||||
source: "img/language-icon-48px.png"
|
source: "img/language-icon-48px.png"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
sourceComponent: (config.languageIcon != "") ? icon : image
|
||||||
|
}
|
||||||
|
|
||||||
ComboBox {
|
ComboBox {
|
||||||
id: languages
|
id: languages
|
||||||
anchors.left: image.right
|
anchors.left: imLoader.right
|
||||||
width: languageBar.width /1.1
|
width: languageBar.width /1.1
|
||||||
textRole: "label"
|
textRole: "label"
|
||||||
currentIndex: config.localeIndex
|
currentIndex: config.localeIndex
|
||||||
|
Loading…
Reference in New Issue
Block a user