attempted to make all controls a bit smaller. GTK4 seems reluctant, though, and I don't know why.

This commit is contained in:
Eudaimon 2022-09-24 19:25:00 +02:00
parent 146c882b45
commit bf3b706b8a
9 changed files with 106 additions and 101 deletions

View file

@ -22,7 +22,7 @@ $successc: #33d17a;
$titlebar_active_fg: #d1ff96;
$titlebar_active_bg: #669900;
$titlebar_active_bg: #507800;
$titlebar_backdrop_fg: #EDF0F5;
$titlebar_backdrop_bg: #3f3e3e;

View file

@ -18,14 +18,17 @@
@if $t==normal {
background-clip: if($checked, border-box, padding-box);
background-image: linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
border-color: $_border_color;
box-shadow: 0 1px transparentize(black, 0.95);
background-image: image($c); //linear-gradient(to bottom, lighten($c, 5%) 20%, $c 90%);
//border-color: $_border_color;
border-width: $border_width;
@include relief($_border_color);
background-color: $c;
//box-shadow: 0 1px transparentize(black, 0.95);
color: $tc;
}
@if $t==hover {
background-image: if($c == white, image(darken($c, 5%)), linear-gradient(to bottom, lighten($c, 9%) 10%, lighten($c, 4%) 90%));
background-image: if($c == white, image(darken($c, 5%)), image(lighten($c, 7%)));
}
@if $t==active {

View file

@ -4,8 +4,8 @@
// Optional compact sizes for buttons, headerbar and headerbar widgets
$_sizevariant: 'compact'; //either 'default', or compact otherwise
$_headerbar_height: if($_sizevariant=='default', 46px, 40px);
$_entry_height: if($_sizevariant=='default', 32px, 28px);
$_headerbar_height: if($_sizevariant=='default', 3em, 2.5em);
$_entry_height: if($_sizevariant=='default', 1.9em, 1.6em);
$_btn_pad: if($_sizevariant=='default', 4px 9px, 2px 4px);
$_hb_btn_pad: if($_sizevariant=='default', 6px, 5px);
$_img_btn_pad: if($_sizevariant=='default', 5px, 2px);
@ -24,8 +24,8 @@ $button_transition: none; //all 200ms $ease-out-quad;
//added by me:
$border_width: 2px;
$button_min_height: 24px;
$button_min_width: 16px;
$button_min_height: 1.6em;
$button_min_width: 1.6em;
$button_padding: $_btn_pad;
$button_border: $border_width solid;