Skip to content

Commit

Permalink
Merge pull request #4393 from traPtitech/feat/add_color_picker_custom…
Browse files Browse the repository at this point in the history
…_theme

カスタムテーマの設定画面にカラーピッカーを設置
  • Loading branch information
nokhnaton authored Dec 1, 2024
2 parents 0ae714d + 4909adf commit d7f5b20
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/views/Settings/ThemeTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@
:class="$style.input"
/>
<!-- eslint-enable vue/valid-v-model --->
<div>
<input
v-model="(val[name as keyof typeof val] as string)"
type="color"
:class="$style.colorInput"
/>
</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -136,17 +143,22 @@ const resetToDark = () => {
.color {
display: flex;
margin: 4px 0;
gap: 0.5rem;
}
.name {
@include color-ui-secondary;
margin-right: 8px;
}
.input {
margin-left: auto;
}
}
.resetButtonContainer {
margin-top: 1rem;
display: flex;
gap: 1rem;
}
.colorInput {
width: 3rem;
height: 100%;
}
</style>

0 comments on commit d7f5b20

Please sign in to comment.