This commit is contained in:
vinceliuice
2025-08-03 10:55:45 +08:00
parent 9bf9fc5a59
commit 117df083f0
4 changed files with 94 additions and 20 deletions

View File

@@ -30,6 +30,7 @@
@import 'widgets/scale'; @import 'widgets/scale';
@import 'widgets/scrolling'; @import 'widgets/scrolling';
@import 'widgets/shortcuts-window'; @import 'widgets/shortcuts-window';
@import 'widgets/shortcuts-dialog';
@import 'widgets/sidebars'; @import 'widgets/sidebars';
@import 'widgets/spinner'; @import 'widgets/spinner';
@import 'widgets/spin-button'; @import 'widgets/spin-button';
@@ -41,4 +42,4 @@
@import 'widgets/tooltip'; @import 'widgets/tooltip';
@import 'widgets/views'; @import 'widgets/views';
@import 'widgets/view-switcher'; @import 'widgets/view-switcher';
@import 'widgets/window'; @import 'widgets/window';

View File

@@ -10,6 +10,10 @@ label {
} }
} }
.dimmed {
opacity: $dim_label_opacity;
}
.dim-label { .dim-label {
opacity: $dim_label_opacity; opacity: $dim_label_opacity;
} }
@@ -36,42 +40,40 @@ label {
.title-1 { .title-1 {
font-weight: 800; font-weight: 800;
font-size: 20pt; font-size: 181%;
} }
.title-2 { .title-2 {
font-weight: 800; font-weight: 800;
font-size: 15pt; font-size: 136%;
} }
.title-3 { .title-3 {
font-weight: 700; font-weight: 700;
font-size: 15pt; font-size: 136%;
} }
.title-4 { .title-4 {
font-weight: 700; font-weight: 700;
font-size: 13pt; font-size: 118%;
} }
.heading { .heading {
font-weight: 700; font-weight: 700;
font-size: 11pt;
} }
.body { .body {
font-weight: 400; font-weight: 400;
font-size: 11pt;
} }
.caption-heading { .caption-heading {
font-weight: 700; font-weight: 700;
font-size: 9pt; font-size: 82%;
} }
.caption { .caption {
font-weight: 400; font-weight: 400;
font-size: 9pt; font-size: 82%;
} }
.monospace { .monospace {

View File

@@ -207,23 +207,48 @@ row.entry {
opacity: $disabled_opacity; opacity: $disabled_opacity;
} }
.dim-label, .subtitle { .dimmed, .dim-label, .subtitle {
opacity: 1; opacity: 1;
} }
} }
.edit-icon, .indicator { > box.header {
min-width: 22px; border-spacing: 0;
min-height: 22px; margin-left: $base_padding;
padding: $base_padding; margin-right: $base_padding;
}
.edit-icon:disabled { > .editable-area {
opacity: $strong_disabled_opacity; padding: 0 $base_padding;
}
.indicator { > .edit-icon, > .indicator {
opacity: $dimmer_opacity; min-width: 24px;
min-height: 24px;
padding: $base_padding - 1px;
}
> .edit-icon, > .indicator, > .apply-button {
&:dir(ltr) { margin-left: $base_padding; }
&:dir(rtl) { margin-right: $base_padding; }
}
> .edit-icon:disabled {
opacity: $strong_disabled_opacity;
}
> .indicator {
opacity: $dimmer_opacity;
}
}
> .prefixes {
&:dir(ltr) { margin-left: $base_padding; }
&:dir(rtl) { margin-right: $base_padding; }
}
> .suffixes {
&:dir(ltr) { margin-right: $base_padding; }
&:dir(rtl) { margin-left: $base_padding; }
}
} }
&.monospace { &.monospace {
@@ -451,6 +476,10 @@ row.button {
margin-right: $base_padding * 2; margin-right: $base_padding * 2;
border-spacing: $base_padding; border-spacing: $base_padding;
min-height: $large_size + 2px; min-height: $large_size + 2px;
> .icon:disabled {
filter: Opacity($disabled_opacity);
}
} }
.title { .title {

View File

@@ -0,0 +1,42 @@
dialog.shortcuts {
preferencespage > scrolledwindow > viewport > clamp > box {
border-spacing: 18px;
preferencesgroup + preferencesgroup box.header {
margin-top: 6px;
}
}
.shortcut-row {
padding: 9px 12px;
min-height: 36px;
.title-box {
border-spacing: 3px;
> .subtitle {
@extend .caption;
@extend .dimmed;
}
}
}
}
shortcut-label {
&, > box {
border-spacing: 6px;
}
.keycap {
background: gtkalpha(currentColor, 0.1);
box-shadow: inset 0 -2px $border_color;
border-radius: 6px;
padding: 6px;
min-width: 20px;
}
> .dimmed {
padding: 6px 0;
}
}