Skip to content

Commit

Permalink
themes/paperwhite: css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
epilys committed Mar 21, 2023
1 parent fe4024a commit 5301318
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 54 deletions.
75 changes: 49 additions & 26 deletions src/themes/paperwhite/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $tab_selected_bg_color: #5094FF;

// Optional compact sizes for buttons, headerbar and headerbar widgets
$_sizevariant: 'default'; //compact otherwise
$_headerbar_height: if($_sizevariant=='default', 2.5rem, 2rem);
$_headerbar_height: if($_sizevariant=='default', 1rem, 0.5rem);
$_entry_height: if($_sizevariant=='default', 1rem, 0.9rem);
$_btn_pad: if($_sizevariant=='default', 0.4rem, 0.2rem);
$_hb_btn_pad: if($_sizevariant=='default', 6px, 5px);
Expand Down Expand Up @@ -595,7 +595,7 @@ button {
padding: $_btn_pad;
border: 1px solid black;
border-radius: $button_radius;
box-shadow: -1px 1px black;
box-shadow: -1px 1px;
transition: $button_transition;
background: $bg_color;

Expand Down Expand Up @@ -632,7 +632,7 @@ button {

&:backdrop {
&.flat, & {
@include button(backdrop);
//@include button(backdrop);

transition: $backdrop_transition;
-gtk-icon-effect: none;
Expand All @@ -650,10 +650,15 @@ button {
}

@at-root %button_basic_flat,
&.flat { &:backdrop, &:disabled, &:backdrop:disabled { @include button(undecorated); }}
&.flat { &:backdrop, &:disabled, &:backdrop:disabled {
color: darkgray;
border-color: darkgray;
//@include button(undecorated);
}}

&:disabled {
@include button(insensitive);
border-color: darkgray;

&:active,
&:checked { @include button(insensitive-active); }
Expand All @@ -669,7 +674,7 @@ button {
padding: .4rem;
border: 1px solid black;
border-radius: $button_radius;
box-shadow: -1px 1px black;
box-shadow: -1px 1px;
background: $bg_color;
}

Expand Down Expand Up @@ -1113,11 +1118,10 @@ toolbar.inline-toolbar toolbutton {
}

%undecorated_button {
background-color: transparent;
//background-color: transparent;
background-image: none;
border-color: transparent;
box-shadow: inset 0 1px transparentize(white, 1),
0 1px transparentize(white, 1);
border-color: darkgray;
color: darkgray;
text-shadow: none;
-gtk-icon-shadow: none;
}
Expand Down Expand Up @@ -1581,19 +1585,13 @@ searchbar > revealer > box {
***************/
%titlebar,
headerbar {
padding: 0 6px;
padding: 0.5rem 1rem;;
min-height: $_headerbar_height;
border-width: 0 0 1px;
border-style: solid;
border-color: $alt_borders_color;
border-radius: 0;

//border: 1px solid grey;
//background-color: white;
//background-image: none;
//min-height: 0;
padding: .2rem;

@include headerbar_fill($headerbar_color);

&:backdrop {
Expand Down Expand Up @@ -1710,7 +1708,11 @@ headerbar {

&.suggested-action {
@include button(normal);

min-height: 1rem;
border: 1px solid black;
margin: 0;
color: black;
box-shadow: -1px 1px;
border-color: $suggested_border_color;

&:hover {
Expand Down Expand Up @@ -1966,8 +1968,14 @@ filechooser .path-bar.linked > button {
border: 1px solid black;
padding: 4px;
border-radius: 4px;
box-shadow: -1px 1px black;
background: $fg_color;
box-shadow: -1px 1px;
background: $bg_color;
&:disabled {
border-color: darkgray;
}
&:disabled image {
color: darkgray;
}
}
}

Expand Down Expand Up @@ -4991,7 +4999,8 @@ button.text-button.shortcuts-more label {
}

button:hover.text-button.shortcuts-more label {
box-shadow: -1px 1px black;
color:black;
box-shadow: -1px 1px;
}

#layers {
Expand Down Expand Up @@ -5065,11 +5074,6 @@ filechooser button label {
min-height: 0;
}

.path-bar > button.toggle {
margin-right: .2rem;
}


// other customs


Expand All @@ -5078,15 +5082,34 @@ filechooser button label {
border: 1px solid black;
padding: 4px;
border-radius: 4px;
box-shadow: -1px 1px black;
box-shadow: -1px 1px;
background: white;
}

button.toggle {
border: 1px solid black;
margin:0;
min-height: 1rem;
color: black;
box-shadow: -1px 1px;
}

button.image-button.more-actions-button {
min-width:0;
border: 1px solid black;
color: black;
box-shadow: -1px 1px;
margin-left: -1px;

border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 3px;

&:backdrop {
border-color: darkgray;
color: darkgray;
}
}

button:active label, button.image-button.more-actions-button:active {
Expand Down
10 changes: 5 additions & 5 deletions src/themes/paperwhite/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
border-color: $osd_borders_color;
background-color: transparentize(opacify($osd_borders_color, 1), 0.5);
background-clip: padding-box;
box-shadow: none;
//box-shadow: none;
text-shadow: none;
-gtk-icon-shadow: none;
}
Expand Down Expand Up @@ -316,12 +316,12 @@
$_bg: if($c != $bg_color, $c, $backdrop_bg_color);
$_bc: if($variant == 'light', $c, _border_color($c));

color: if($tc != $fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color);
border-color: if($c != $bg_color, $_bc, $backdrop_borders_color);
background-image: image($_bg);
//color: if($tc != $fg_color, mix($tc, $_bg, 80%), $backdrop_fg_color);
//border-color: if($c != $bg_color, $_bc, $backdrop_borders_color);
//background-image: image($_bg);
text-shadow: none;
-gtk-icon-shadow: none;
@include _shadows(inset 0 1px transparentize(white, 1), $_blank_edge);
//@include _shadows(inset 0 1px transparentize(white, 1), $_blank_edge);
}

@else if $t==backdrop-active {
Expand Down
Loading

0 comments on commit 5301318

Please sign in to comment.