Skip to content

Commit d7f5b20

Browse files
authored
Merge pull request #4393 from traPtitech/feat/add_color_picker_custom_theme
カスタムテーマの設定画面にカラーピッカーを設置
2 parents 0ae714d + 4909adf commit d7f5b20

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/views/Settings/ThemeTab.vue

+13-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@
5959
:class="$style.input"
6060
/>
6161
<!-- eslint-enable vue/valid-v-model --->
62+
<div>
63+
<input
64+
v-model="(val[name as keyof typeof val] as string)"
65+
type="color"
66+
:class="$style.colorInput"
67+
/>
68+
</div>
6269
</div>
6370
</div>
6471
</div>
@@ -136,17 +143,22 @@ const resetToDark = () => {
136143
.color {
137144
display: flex;
138145
margin: 4px 0;
146+
gap: 0.5rem;
139147
}
140148
.name {
141149
@include color-ui-secondary;
142-
margin-right: 8px;
143150
}
144151
.input {
145152
margin-left: auto;
146153
}
147154
}
148155
.resetButtonContainer {
156+
margin-top: 1rem;
149157
display: flex;
150158
gap: 1rem;
151159
}
160+
.colorInput {
161+
width: 3rem;
162+
height: 100%;
163+
}
152164
</style>

0 commit comments

Comments
 (0)