Merge pull request #1481 from demmm/calamares

[welcomeq] language bar icon configurable
This commit is contained in:
Adriaan de Groot 2020-08-10 17:02:58 +02:00 committed by GitHub
commit c48ec6bf94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 6 deletions

View File

@ -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

View File

@ -144,16 +144,34 @@ Page
width: parent.width width: parent.width
Layout.fillWidth: true Layout.fillWidth: true
focus: true focus: true
Image {
id: image Loader {
height: 48 id: imLoader
fillMode: Image.PreserveAspectFit
source: "img/language-icon-48px.png" Component {
id: icon
Kirigami.Icon {
source: config.languageIcon
height: 48
width: 48
}
}
Component {
id: image
Image {
height: 48
fillMode: Image.PreserveAspectFit
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