Skip to content

Commit 1ea266e

Browse files
committed
feat: improve settings window in theme generator
1 parent 8395628 commit 1ea266e

File tree

2 files changed

+56
-16
lines changed

2 files changed

+56
-16
lines changed

src/components/themes/ThemeGenerator.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ function downloadTheme() {
154154
:highlight-text="colors.HighlightedText"
155155
:background="colors.Window"
156156
:button-color="colors.Button"
157+
:background-text="colors.WindowText"
158+
:text="colors.Text"
157159
:base="colors.Base"
158160
/>
159161
</div>

src/components/themes/windows/SettingsThemed.vue

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ const {
77
highlightText,
88
background,
99
buttonColor,
10+
text,
11+
backgroundText,
1012
base,
1113
} = defineProps<{
12-
"highlight" : string;
13-
"highlightText": string;
14-
"background" : string;
15-
"buttonColor" : string;
16-
"base" : string;
14+
"highlight" : string;
15+
"highlightText" : string;
16+
"background" : string;
17+
"buttonColor" : string;
18+
"text" : string;
19+
"backgroundText": string;
20+
"base" : string;
1721
}>();
1822
1923
const catPackStore = useCatPackState();
@@ -49,7 +53,7 @@ const itemsThemesSettings = [
4953
class="flex flex-nowrap items-center gap-2 p-1"
5054
:style="{
5155
background: button.icon === 'special' ? highlight : 'transparent',
52-
color : button.icon === 'special' ? highlightText : '#ffffff',
56+
color : button.icon === 'special' ? highlightText : text,
5357
}"
5458
>
5559
<Image
@@ -69,7 +73,10 @@ const itemsThemesSettings = [
6973
:style="{ background: background }"
7074
>
7175
<div class="flex flex-nowrap items-center justify-between">
72-
<p class="pl-2 font-bold leading-none">
76+
<p
77+
class="pl-2 font-bold leading-none"
78+
:style="{ color: backgroundText }"
79+
>
7380
Launcher
7481
</p>
7582
<Image class-names="size-6" src="/favicon.webp" alt="Freesm Launcher logo" />
@@ -88,6 +95,7 @@ const itemsThemesSettings = [
8895
:style="{
8996
background : buttonColor,
9097
borderColor: background,
98+
color : backgroundText,
9199
}"
92100
>
93101
{{ name }}
@@ -100,7 +108,10 @@ const itemsThemesSettings = [
100108
borderColor: base,
101109
}"
102110
>
103-
<p class="text-xs">
111+
<p
112+
class="text-xs"
113+
:style="{ color: backgroundText }"
114+
>
104115
Instance view sorting mode
105116
</p>
106117
<div
@@ -110,6 +121,7 @@ const itemsThemesSettings = [
110121
v-for="item in ['By last launched', 'By name']"
111122
:key="item"
112123
class="flex flex-nowrap items-center gap-1"
124+
:style="{ color: backgroundText }"
113125
>
114126
<div v-if="item === 'By last launched'" class="size-4 rounded-full bg-black" />
115127
<div v-else class="grid size-4 place-items-center rounded-full bg-black">
@@ -120,7 +132,10 @@ const itemsThemesSettings = [
120132
</p>
121133
</div>
122134
</div>
123-
<p class="pt-2 text-xs">
135+
<p
136+
class="pt-2 text-xs"
137+
:style="{ color: backgroundText }"
138+
>
124139
Theme
125140
</p>
126141
<div
@@ -131,29 +146,42 @@ const itemsThemesSettings = [
131146
:key="item.name"
132147
class="flex flex-nowrap items-center gap-2"
133148
>
134-
<p class="w-11 shrink-0 text-xs">
149+
<p
150+
class="w-11 shrink-0 text-xs"
151+
:style="{ color: backgroundText }"
152+
>
135153
{{ item.name }}
136154
</p>
137155
<div
138156
class="w-full border rounded-md p-1 text-xs leading-none brightness-85"
139157
:style="{
140158
background : buttonColor,
141159
borderColor: background,
160+
color : backgroundText,
142161
}"
143162
>
144163
{{ item.input }}
145164
</div>
146-
<div class="i-lucide-folder size-4 shrink-0" />
165+
<div
166+
class="i-lucide-folder size-4 shrink-0"
167+
:style="{ color: backgroundText }"
168+
/>
147169
</div>
148170
</div>
149-
<p class="pt-2 text-xs">
171+
<p
172+
class="pt-2 text-xs"
173+
:style="{ color: backgroundText }"
174+
>
150175
Cat
151176
</p>
152177
<div
153178
class="border border-black rounded-md px-2 py-2 sm:cols-2"
154179
>
155180
<div class="flex flex-nowrap items-center justify-between">
156-
<p class="text-xs">
181+
<p
182+
class="text-xs"
183+
:style="{ color: backgroundText }"
184+
>
157185
Opacity
158186
</p>
159187
<div
@@ -162,13 +190,17 @@ const itemsThemesSettings = [
162190
background: base,
163191
}"
164192
>
165-
<p class="p-1 text-xs leading-none">
193+
<p
194+
class="p-1 text-xs leading-none"
195+
:style="{ color: backgroundText }"
196+
>
166197
100%
167198
</p>
168199
<div
169200
class="h-full w-4 flex flex-col items-center justify-center rounded-md"
170201
:style="{
171202
background: background,
203+
color : backgroundText,
172204
}"
173205
>
174206
<div class="i-fluent-caret-up-16-filled size-2" />
@@ -177,15 +209,21 @@ const itemsThemesSettings = [
177209
</div>
178210
</div>
179211
</div>
180-
<p class="pt-2 text-xs">
212+
<p
213+
class="pt-2 text-xs"
214+
:style="{ color: backgroundText }"
215+
>
181216
Tools
182217
</p>
183218
<div
184219
class="border border-black rounded-md px-2 py-3 sm:cols-2"
185220
>
186221
<div class="flex flex-nowrap items-center gap-1">
187222
<div class="size-4 bg-black" />
188-
<p class="text-xs">
223+
<p
224+
class="text-xs"
225+
:style="{ color: backgroundText }"
226+
>
189227
Replace toolbar with menubar
190228
</p>
191229
</div>

0 commit comments

Comments
 (0)