20 lines
477 B
QML
20 lines
477 B
QML
import qs.components
|
|
import qs.config
|
|
import QtQuick
|
|
|
|
StyledComboBox {
|
|
id: control
|
|
|
|
currentIndex: Theme.themes.indexOf(Theme.currentTheme)
|
|
model: Theme.themes
|
|
onActivated: index => {
|
|
Theme.currentTheme = Theme.themes[index];
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
control.currentIndex = Theme.themes.indexOf(Theme.currentTheme);
|
|
Theme.onCurrentThemeChanged = () => {
|
|
Theme.themes.indexOf(Theme.currentTheme);
|
|
};
|
|
}
|
|
}
|