summaryrefslogtreecommitdiff
path: root/raveos-theme/hyprland/theme-data/DankMaterialShell/quickshell/Modals/Greeter/GreeterWelcomePage.qml
blob: fcb4fc5933373168efc9d278698ec7af5080242b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
import QtQuick
import QtQuick.Effects
import Quickshell
import qs.Common
import qs.Services
import qs.Widgets

Item {
    id: root

    readonly property real logoSize: Math.round(Theme.iconSize * 5.3)

    Column {
        id: mainColumn
        anchors.centerIn: parent
        width: Math.min(Math.round(Theme.fontSizeMedium * 43), parent.width - Theme.spacingXL * 2)
        spacing: Theme.spacingXL

        Column {
            width: parent.width
            spacing: Theme.spacingM

            Image {
                width: root.logoSize
                height: width * (569.94629 / 506.50931)
                anchors.horizontalCenter: parent.horizontalCenter
                fillMode: Image.PreserveAspectFit
                smooth: true
                mipmap: true
                asynchronous: true
                source: "file://" + Theme.shellDir + "/assets/danklogonormal.svg"
                layer.enabled: true
                layer.smooth: true
                layer.mipmap: true
                layer.effect: MultiEffect {
                    saturation: 0
                    colorization: 1
                    colorizationColor: Theme.primary
                }
            }

            Column {
                width: parent.width
                spacing: Theme.spacingXS

                StyledText {
                    text: I18n.tr("Welcome to DankMaterialShell", "greeter welcome page title")
                    font.pixelSize: Theme.fontSizeXLarge + 4
                    font.weight: Font.Bold
                    color: Theme.surfaceText
                    anchors.horizontalCenter: parent.horizontalCenter
                }

                StyledText {
                    text: I18n.tr("A modern desktop shell for Wayland compositors", "greeter welcome page tagline")
                    font.pixelSize: Theme.fontSizeMedium
                    color: Theme.surfaceVariantText
                    anchors.horizontalCenter: parent.horizontalCenter
                }
            }
        }

        Rectangle {
            width: parent.width
            height: 1
            color: Theme.outlineMedium
            opacity: 0.3
        }

        Column {
            width: parent.width
            spacing: Theme.spacingM

            StyledText {
                text: I18n.tr("Features", "greeter welcome page section header")
                font.pixelSize: Theme.fontSizeMedium
                font.weight: Font.Medium
                color: Theme.surfaceText
            }

            Grid {
                width: parent.width
                columns: 3
                rowSpacing: Theme.spacingS
                columnSpacing: Theme.spacingS

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "auto_awesome"
                    title: I18n.tr("Dynamic Theming", "greeter feature card title")
                    description: I18n.tr("Colors from wallpaper", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("theme")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "format_paint"
                    title: I18n.tr("App Theming", "greeter feature card title")
                    description: I18n.tr("GTK, Qt, IDEs, more", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("theme")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "download"
                    title: I18n.tr("Theme Registry", "greeter feature card title")
                    description: I18n.tr("Community themes", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("theme")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "view_carousel"
                    title: I18n.tr("DankBar", "greeter feature card title")
                    description: I18n.tr("Modular widget bar", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("dankbar_settings")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "extension"
                    title: I18n.tr("Plugins", "greeter feature card title")
                    description: I18n.tr("Extensible architecture", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("plugins")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "layers"
                    title: I18n.tr("Multi-Monitor", "greeter feature card title")
                    description: I18n.tr("Per-screen config", "greeter feature card description")
                    onClicked: {
                        const hasDisplayConfig = CompositorService.isNiri || CompositorService.isHyprland || CompositorService.isDwl;
                        PopoutService.openSettingsWithTab(hasDisplayConfig ? "display_config" : "display_widgets");
                    }
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "nightlight"
                    title: I18n.tr("Display Control", "greeter feature card title")
                    description: I18n.tr("Night mode & gamma", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("display_gamma")
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "tune"
                    title: I18n.tr("Control Center", "greeter feature card title")
                    description: I18n.tr("Quick system toggles", "greeter feature card description")
                    // This is doing an IPC since its just easier and lazier to access the bar ref
                    onClicked: Quickshell.execDetached(["dms", "ipc", "call", "control-center", "open"])
                }

                GreeterFeatureCard {
                    width: (parent.width - Theme.spacingS * 2) / 3
                    iconName: "lock"
                    title: I18n.tr("Lock Screen", "greeter feature card title")
                    description: I18n.tr("Security & privacy", "greeter feature card description")
                    onClicked: PopoutService.openSettingsWithTab("lock_screen")
                }
            }
        }
    }
}