diff --git a/Colors.qml b/Colors.qml index 6396983..e4d4347 100644 --- a/Colors.qml +++ b/Colors.qml @@ -8,7 +8,7 @@ import qs.settings Singleton { id: root property alias c: colors - property string accent: colors[Config.cfg.appearance.accent] + property color accent: colors[Config.cfg.appearance.accent] property string font: colors.base05 FileView { @@ -20,22 +20,22 @@ Singleton { watchChanges: true adapter: JsonAdapter { id: colors - property string base00 - property string base01 - property string base02 - property string base03 - property string base04 - property string base05 - property string base06 - property string base07 - property string base08 - property string base09 - property string base0A - property string base0B - property string base0C - property string base0D - property string base0E - property string base0F + property color base00 + property color base01 + property color base02 + property color base03 + property color base04 + property color base05 + property color base06 + property color base07 + property color base08 + property color base09 + property color base0A + property color base0B + property color base0C + property color base0D + property color base0E + property color base0F } } } diff --git a/modules/applets/ThemeSwitcher.qml b/modules/applets/ThemeSwitcher.qml index aa3e2e6..5265adb 100644 --- a/modules/applets/ThemeSwitcher.qml +++ b/modules/applets/ThemeSwitcher.qml @@ -18,8 +18,6 @@ Rectangle { implicitHeight: 600 color: Colors.c.base00 radius: Config.cfg.appearance.rounding - border.width: 1 - border.color: Colors.c.base03 MouseArea { acceptedButtons: Qt.AllButtons anchors.fill: parent @@ -55,8 +53,7 @@ Rectangle { implicitWidth: 300 implicitHeight: 30 radius: Config.cfg.appearance.rounding - border.width: 1 - border.color: Colors.c.base03 + } } @@ -69,8 +66,6 @@ Rectangle { delegate: Rectangle { id: container required property var modelData - border.width: 1 - border.color: Colors.c.base03 color: Colors.c.base02 height: 30 radius: Config.cfg.appearance.rounding diff --git a/modules/applets/VolPopup.qml b/modules/applets/VolPopup.qml index c84cd84..516a037 100644 --- a/modules/applets/VolPopup.qml +++ b/modules/applets/VolPopup.qml @@ -30,11 +30,10 @@ Rectangle { id: audioRep model: Audio.sinks - delegate: Rectangle { + delegate: BarComponent { Layout.margins: 5 id: audioDelContainer Layout.fillWidth: true - color: Colors.c.base02 radius: Config.cfg.appearance.rounding - 4 required property var modelData implicitHeight: audioRow.implicitHeight + 8 diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 087cc20..31490ea 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -23,7 +23,7 @@ Variants { margins.left: Config.cfg.bar.floating ? 10 : 0 margins.right: Config.cfg.bar.floating ? 10 : 0 Rectangle { - color: Colors.c.base01 + color: Colors.c.base00 radius: Config.cfg.bar.floating ? Config.cfg.appearance.rounding : 0 anchors.fill: parent implicitHeight: parent.height diff --git a/settings/settings.json b/settings/settings.json index 522c6dd..a3ff1bb 100644 --- a/settings/settings.json +++ b/settings/settings.json @@ -1,7 +1,7 @@ { "appearance": { "accent": "base0D", - "currentTheme": "base16-gruvbox-dark.json", + "currentTheme": "base16-tokyodark.json", "font": "Inter", "fontSize": 14, "iconSize": 16, @@ -14,6 +14,6 @@ }, "wallpaper": { "wallDir": "/home/lucy/.walls/", - "wallpaper": "/home/lucy/.walls/lain_room.png" + "wallpaper": "/home/lucy/.walls/faris.png" } } diff --git a/widgets/BarComponent.qml b/widgets/BarComponent.qml index f76b3bb..cb93a5a 100644 --- a/widgets/BarComponent.qml +++ b/widgets/BarComponent.qml @@ -4,11 +4,9 @@ import qs import qs.settings Rectangle { - property color accent: Colors.c.base02 + property color base: Qt.rgba(Colors.accent.r, Colors.accent.g, Colors.accent.b, active ? 0.5 : 0.19) property bool active: false - color: active ? Colors.c.base03 : Colors.c.base02 + color: base implicitHeight: Config.cfg.bar.height - 8 radius: Config.cfg.appearance.rounding - 4 - border.width: 1 - border.color: Colors.c.base03 }