Skip to content

Commit

Permalink
Gtk-4: Fix theme parsing erros and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
EliverLara committed Dec 3, 2021
1 parent ae618e2 commit 16d4bfb
Show file tree
Hide file tree
Showing 19 changed files with 103 additions and 342 deletions.
21 changes: 1 addition & 20 deletions gtk-4.0/_common.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,6 @@ $button_transition: all 200ms $ease-out-quad;

* {
padding: 0;
-GtkToolButton-icon-spacing: 4;
-GtkTextView-error-underline-color: $error_color;

// The size for scrollbars. The slider is 2px smaller, but we keep it
// up so that the whole area is sensitive to button presses for the
// slider. The stepper button is larger in both directions, the slider
// only in the width

-GtkScrolledWindow-scrollbar-spacing: 0;

-GtkToolItemGroup-expander-size: 11;

-GtkWidget-text-handle-width: 20;
-GtkWidget-text-handle-height: 24;

-GtkDialog-button-spacing: 4;
-GtkDialog-action-area-border: 0;

// We use the outline properties to signal the focus properties
// to the adwaita engine: using real CSS properties is faster,
// and we don't use any outlines for now.
Expand All @@ -39,7 +21,6 @@ $button_transition: all 200ms $ease-out-quad;
outline-style: dashed;
outline-offset: -3px;
outline-width: 0px;
-gtk-outline-radius: 2px;

-gtk-secondary-caret-color: $selected_bg_color;
}
}
18 changes: 7 additions & 11 deletions gtk-4.0/_drawing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -521,17 +521,13 @@
@if $t==backdrop { $_small_gradient_color: $backdrop_borders_color; }
}

$_small_gradient: -gtk-gradient(radial,
$_position, 0,
$_position, 0.5,
to($_small_gradient_color),
to(transparentize($_small_gradient_color, 1)));

$_big_gradient: -gtk-gradient(radial,
$_position, 0,
$_position, 0.6,
from(transparentize($_big_gradient_color, 0.87)),
to(transparentize($_big_gradient_color, 1)));
$_small_gradient: radial-gradient(farthest-side at $p,
$_small_gradient_color 85%,
transparentize($_small_gradient_color, 1));

$_big_gradient: radial-gradient(farthest-side at $p,
$_big_gradient_color,
transparentize($_big_gradient_color, 1));

@if $t==normal {
background-image: $_small_gradient, $_big_gradient;
Expand Down
10 changes: 5 additions & 5 deletions gtk-4.0/apps/_budgie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $pos_list: ((top, bottom),(bottom,top),(left,right),(right,left));
color: $panel_color;
.container { padding: 0; }

button:hover { -gtk-icon-effect: none; }
button:hover { -gtk-icon-filter: none; }

entry.search {
border: none;
Expand Down Expand Up @@ -350,17 +350,17 @@ button.raven-trigger {
.view-header {
font-size: 14px;
padding: 10px;
border-bottom: #{"1px solid mix(@theme_base_color, #000000, 0.35);"};
box-shadow: #{"0px 1px 1px alpha(@theme_fg_color, 0.04);"};
border-bottom: #{"1px solid mix(@theme_base_color, #000000, 0.35)"};
box-shadow: #{"0px 1px 1px alpha(@theme_fg_color, 0.04)"};
}

.display-settings-button {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
border: none;
padding: 3px;
border-top: #{"1px solid mix(@theme_base_color, #000000, 0.35);"};
box-shadow: #{"inset 0px 1px 1px alpha(@theme_fg_color, 0.04);"};
border-top: #{"1px solid mix(@theme_base_color, #000000, 0.35)"};
box-shadow: #{"inset 0px 1px 1px alpha(@theme_fg_color, 0.04)"};
}
}

Expand Down
1 change: 0 additions & 1 deletion gtk-4.0/apps/_geary.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
}

ConversationListView {
-GtkTreeView-grid-line-width: 0;

.view {
&:active,
Expand Down
1 change: 0 additions & 1 deletion gtk-4.0/apps/_gnome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@

.nautilus-circular-button {
border-radius: 20px;
-gtk-outline-radius: 20px;
}

.disk-space-display {
Expand Down
3 changes: 0 additions & 3 deletions gtk-4.0/apps/_nemo.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.nemo-window {
.places-treeview {
-NemoPlacesTreeView-disk-full-bg-color: lighten($_sidebar_color, 15%);
-NemoPlacesTreeView-disk-full-fg-color: $yellow;
-GtkTreeView-vertical-separator: 10;
.view.cell,
iconview.cell {
&:hover { background: transparentize(darken($_sidebar_color, 3%), 0.3); }
Expand Down
20 changes: 0 additions & 20 deletions gtk-4.0/apps/_unity.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,6 @@ $unity_panel_color: darken($unity_color, 10%); /* Unity panel color #454D50 */

UnityDecoration {

/* Border properties (top, right, bottom, left) */
-UnityDecoration-extents: 28px 1px 1px 1px;/* the size of the decorations */
-UnityDecoration-input-extents: 10px;/* the extra size of the input areas */

/* Shadows settings */
-UnityDecoration-shadow-offset-x: 1px;/* Size property, the shadow x offset */
-UnityDecoration-shadow-offset-y: 1px;/* Size property, the shadow y offset */
-UnityDecoration-active-shadow-color: rgba (0, 0, 0, 0.647);/* Color property, active window shadow color */
-UnityDecoration-active-shadow-radius: 8px;/* Size property, active window shadow radius */
-UnityDecoration-inactive-shadow-color: rgba (0, 0, 0, 0.647);/* Color property, inactive windows shadow color */
-UnityDecoration-inactive-shadow-radius: 5px;/* Size property, inactive windows shadow radius */

/* Glow applied to the selected scaled window */
-UnityDecoration-glow-size: 8px;/* Size property, size of glow */
-UnityDecoration-glow-color: $selected_bg_color;/* Color property of the glow */

/* Title settings */
-UnityDecoration-title-indent: 10px;/* Size property, left indent of the title */
-UnityDecoration-title-fade: 35px;/* Size property, space of the title that can be faded */
-UnityDecoration-title-alignment: 0.0;/* Float from 0.0 to 1.0, to align the title */
background-color: $unity_color;
color: $unity_text_color;

Expand Down
Loading

0 comments on commit 16d4bfb

Please sign in to comment.