on xenial help sign in
fade out the layout listview a bit when the language selector gets expanded
commitf3d9288e6e79e3c5e2713433608e183e9b51853c authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 18 May 2016, 13:17 (10 years ago) parent479bdd4
2 files changed+5−2
qml/Wizard/Pages/10-welcome.qml−1 qml/Wizard/Pages/20-keyboard.qml+5−1
qml/Wizard/Pages/10-welcome.qml−1
@@ -160,7 +160,6 @@ LocalComponents.Page {
160160 var locale = plugin.languageCodes[languagesListView.currentIndex];
161161 var language = locale.split("_")[0].split(".")[0];
162162 plugin.currentLanguage = languagesListView.currentIndex;
163− print("Setting current language to:", plugin.currentLanguage)
164163 oskPlugin.setCurrentLayout(language);
165164 System.updateSessionLocale(locale);
166165 }
qml/Wizard/Pages/20-keyboard.qml+5−1
@@ -39,7 +39,7 @@ LocalComponents.Page {
3939
4040 Component.onCompleted: print("Initial language:", i18n.language)
4141
42− readonly property string selectedLanguage: langPlugin.languageCodes[langSelector.selectedIndex].split("_")[0].split(".")[0]
42+ readonly property string selectedLanguage: langPlugin.languageCodes[langSelector.selectedIndex].split(".")[0] // chop off the codeset (.UTF-8)
4343
4444 onSelectedLanguageChanged: {
4545 print("Selected language:", selectedLanguage)
@@ -76,6 +76,10 @@ LocalComponents.Page {
7676 snapMode: ListView.SnapToItem
7777 model: layoutsModel
7878 currentIndex: -1
79+ opacity: langSelector.currentlyExpanded ? 0.5 : 1
80+ Behavior on opacity {
81+ UbuntuNumberAnimation {}
82+ }
7983
8084 delegate: ListItem {
8185 id: itemDelegate