lookin' good

This commit is contained in:
Henry Jameson 2024-10-07 02:16:24 +03:00
parent f0e5b0be1e
commit 4f66731723
6 changed files with 29 additions and 14 deletions

View file

@ -111,6 +111,8 @@ export default {
"x-num x-slide . " "x-num x-slide . "
"options options options"; "options options options";
grid-gap: 0.5em; grid-gap: 0.5em;
max-width: 25em;
max-height: 25em;
.header { .header {
grid-area: header; grid-area: header;

View file

@ -18,9 +18,9 @@ export default {
{ {
component: 'Root', component: 'Root',
directives: { directives: {
'--inputDefaultBevel': 'shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2)', '--defaultInputBevel': 'shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2)',
'--inputDefaultHoverGlow': 'shadow | 0 0 4 --text / 0.5', '--defaultInputHoverGlow': 'shadow | 0 0 4 --text / 0.5',
'--inputDefaultFocusGlow': 'shadow | 0 0 4 4 --link / 0.5' '--defaultInputFocusGlow': 'shadow | 0 0 4 4 --link / 0.5'
} }
}, },
{ {
@ -41,25 +41,25 @@ export default {
spread: 0, spread: 0,
color: '#000000', color: '#000000',
alpha: 1 alpha: 1
}, '--inputDefaultBevel'] }, '--defaultInputBevel']
} }
}, },
{ {
state: ['hover'], state: ['hover'],
directives: { directives: {
shadow: ['--inputDefaultHoverGlow', '--inputDefaultBevel'] shadow: ['--defaultInputHoverGlow', '--defaultInputBevel']
} }
}, },
{ {
state: ['focused'], state: ['focused'],
directives: { directives: {
shadow: ['--inputDefaultFocusGlow', '--inputDefaultBevel'] shadow: ['--defaultInputFocusGlow', '--defaultInputBevel']
} }
}, },
{ {
state: ['focused', 'hover'], state: ['focused', 'hover'],
directives: { directives: {
shadow: ['--inputDefaultFocusGlow', '--inputDefaultHoverGlow', '--inputDefaultBevel'] shadow: ['--defaultInputFocusGlow', '--defaultInputHoverGlow', '--defaultInputBevel']
} }
}, },
{ {

View file

@ -119,6 +119,12 @@
} }
} }
.palettes-editor {
.list-edit-area {
align-self: baseline;
}
}
.variables-editor { .variables-editor {
.variable-selector { .variable-selector {
display: grid; display: grid;
@ -132,6 +138,10 @@
display: grid; display: grid;
grid-template-rows: subgrid; grid-template-rows: subgrid;
} }
.shadow-control {
grid-row: 2 / span 2;
}
} }
.component-editor { .component-editor {

View file

@ -4,6 +4,7 @@
<template> <template>
<div class="StyleTab"> <div class="StyleTab">
<div class="setting-item heading"> <div class="setting-item heading">
<!-- TODO: This needs to go -->
<h2>{{ $t('settings.style.themes3.editor.title') }}</h2> <h2>{{ $t('settings.style.themes3.editor.title') }}</h2>
<button <button
class="btn button-default" class="btn button-default"
@ -350,7 +351,9 @@
<Select <Select
v-model="selectedVirtualDirective.valType" v-model="selectedVirtualDirective.valType"
> >
<option value='shadow'>shadow</option> <option value='shadow'>
{{ $t('settings.style.themes3.variables.type_label') }}
shadow</option>
<option value='shadow'>color</option> <option value='shadow'>color</option>
<option value='shadow'>generic</option> <option value='shadow'>generic</option>
</Select> </Select>

View file

@ -9,12 +9,11 @@
width: 100%; width: 100%;
&.-compact { &.-compact {
grid-template-columns: 1fr; grid-template-columns: 10em 1fr;
grid-template-rows: 10em auto auto; grid-template-rows: auto auto;
grid-template-areas: grid-template-areas:
"selector" "selector preview"
"preview" "tweak tweak";
"tweak";
&.-no-preview { &.-no-preview {
grid-template-columns: 1fr; grid-template-columns: 1fr;
@ -116,6 +115,7 @@
min-width: 10em; min-width: 10em;
margin-left: 0.125em; margin-left: 0.125em;
align-self: start; align-self: start;
justify-self: center;
} }
} }

View file

@ -757,7 +757,7 @@
"themes3": { "themes3": {
"define": "Override", "define": "Override",
"palette": { "palette": {
"label": "Palette", "label": "Palettes",
"import": "Import", "import": "Import",
"export": "Export", "export": "Export",
"bg": "Panel background", "bg": "Panel background",