Compare commits
No commits in common. "c03d24de153fa426ea0d005d2971ee01273e0dcf" and "37afb798bc6d54c5e4e597c5ac49d9f0f2ab833b" have entirely different histories.
c03d24de15
...
37afb798bc
4 changed files with 10 additions and 23 deletions
|
|
@ -1,20 +0,0 @@
|
|||
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);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
@ -8,6 +8,7 @@ import Quickshell.Io
|
|||
Singleton {
|
||||
id: root
|
||||
|
||||
property string fontFamily: "JetBrainsMono Nerd Font"
|
||||
property var palette: theme.palette
|
||||
|
||||
property alias themes: cache.themes
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import qs.components
|
||||
import qs.components.composite
|
||||
import qs.config
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
|
|
@ -11,9 +10,16 @@ StyledPane {
|
|||
|
||||
StyledText {
|
||||
text: "Theme"
|
||||
// font.bold: true
|
||||
font.pixelSize: Styling.typography.textSize.lg
|
||||
}
|
||||
|
||||
ThemeComboBox {}
|
||||
StyledComboBox {
|
||||
currentIndex: Theme.themes.indexOf(Theme.currentTheme)
|
||||
model: Theme.themes
|
||||
onActivated: index => {
|
||||
Theme.currentTheme = Theme.themes[index];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ StyledPanelWindow {
|
|||
id: circle
|
||||
radius: 150
|
||||
borderColor: Styling.theme.base100
|
||||
strokeColor: PomodoroService.state == "timer" ? Styling.theme.primary : Styling.theme.warning
|
||||
strokeColor: PomodoroService.state == "timer" ? Theme.palette.primary : Theme.palette.warning
|
||||
strokeWidth: 12
|
||||
fillColor: button.hovered ? Styling.theme.primary : "transparent"
|
||||
percentage: (PomodoroService.state == "timer" ? (PomodoroService.initialTime - PomodoroService.remainingTime) : PomodoroService.remainingTime) / PomodoroService.initialTime % 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue