Skip to content

Commit d23fc9f

Browse files
committed
welcome: add a first launch welcome page with doctor integration
fixes #760
1 parent 7ac5191 commit d23fc9f

20 files changed

+1890
-13
lines changed

core/cmd/dms/commands_doctor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ func checkOptionalDependencies() []checkResult {
676676
}{
677677
{"matugen", "matugen", "", "Dynamic theming", true},
678678
{"dgop", "dgop", "", "System monitoring", true},
679-
{"cava", "cava", "", "Audio waveform", false},
679+
{"cava", "cava", "", "Audio visualizer", true},
680680
{"khal", "khal", "", "Calendar events", false},
681681
{"Network", "nmcli", "iwctl", "Network management", false},
682682
{"danksearch", "dsearch", "", "File search", false},

quickshell/Common/SessionData.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Singleton {
336336
if (typeof SettingsData !== "undefined" && SettingsData.theme) {
337337
Theme.switchTheme(SettingsData.theme);
338338
} else {
339-
Theme.switchTheme("blue");
339+
Theme.switchTheme("purple");
340340
}
341341
}
342342
}

quickshell/Common/SettingsData.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Singleton {
6767
property alias dankBarCenterWidgetsModel: centerWidgetsModel
6868
property alias dankBarRightWidgetsModel: rightWidgetsModel
6969

70-
property string currentThemeName: "blue"
70+
property string currentThemeName: "purple"
7171
property string currentThemeCategory: "generic"
7272
property string customThemeFile: ""
7373
property var registryThemeVariants: ({})

quickshell/Common/Theme.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Singleton {
3030
return useAuto ? Math.max(4, spacing) : manualValue;
3131
}
3232

33-
property string currentTheme: "blue"
33+
property string currentTheme: "purple"
3434
property string currentThemeCategory: "generic"
3535
property bool isLightMode: typeof SessionData !== "undefined" ? SessionData.isLightMode : false
3636
property bool colorsFileLoadFailed: false
@@ -196,7 +196,7 @@ Singleton {
196196

197197
readonly property var currentThemeData: {
198198
if (currentTheme === "custom") {
199-
return customThemeData || StockThemes.getThemeByName("blue", isLightMode);
199+
return customThemeData || StockThemes.getThemeByName("purple", isLightMode);
200200
} else if (currentTheme === dynamic) {
201201
return {
202202
"primary": getMatugenColor("primary", "#42a5f5"),

quickshell/Common/settings/SettingsSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function percentToUnit(v) {
66
}
77

88
var SPEC = {
9-
currentThemeName: { def: "blue", onChange: "applyStoredTheme" },
9+
currentThemeName: { def: "purple", onChange: "applyStoredTheme" },
1010
currentThemeCategory: { def: "generic" },
1111
customThemeFile: { def: "" },
1212
registryThemeVariants: { def: {} },

quickshell/DMSShell.qml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Quickshell
33
import qs.Common
44
import qs.Modals
55
import qs.Modals.Clipboard
6+
import qs.Modals.Greeter
67
import qs.Modals.Settings
78
import qs.Modals.Spotlight
89
import qs.Modules
@@ -816,4 +817,20 @@ Item {
816817
id: niriOverviewOverlay
817818
}
818819
}
820+
821+
Loader {
822+
id: greeterLoader
823+
active: false
824+
sourceComponent: GreeterModal {
825+
onGreeterCompleted: greeterLoader.active = false
826+
Component.onCompleted: show()
827+
}
828+
829+
Connections {
830+
target: FirstLaunchService
831+
function onGreeterRequested() {
832+
greeterLoader.active = true;
833+
}
834+
}
835+
}
819836
}

quickshell/Modals/FileBrowser/FileBrowserModal.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ FloatingWindow {
4141

4242
onVisibleChanged: {
4343
if (visible) {
44-
if (parentModal) {
44+
if (parentModal && "shouldHaveFocus" in parentModal) {
4545
parentModal.shouldHaveFocus = false;
4646
parentModal.allowFocusOverride = true;
4747
}
4848
content.reset();
4949
Qt.callLater(() => content.forceActiveFocus());
5050
} else {
51-
if (parentModal) {
51+
if (parentModal && "allowFocusOverride" in parentModal) {
5252
parentModal.allowFocusOverride = false;
5353
parentModal.shouldHaveFocus = Qt.binding(() => parentModal.shouldBeVisible);
5454
}

0 commit comments

Comments
 (0)