Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Breeze for GTK
Commits
8361a06f
Commit
8361a06f
authored
May 14, 2022
by
Artem Grinev
Committed by
Nate Graham
May 17, 2022
Browse files
GTK3,4: Use light border for sidebar
parent
0c1bf17f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/gtk3/widgets/_sidebar.scss
View file @
8361a06f
...
...
@@ -32,14 +32,33 @@
}
.sidebar
{
border
:
none
;
background-color
:
gtk
(
"@theme_bg_color"
);
border-radius
:
0px
;
border-style
:
none
;
background-color
:
gtk
(
"@theme_base_color"
);
&
:selected
{
@extend
%selected_items
;
}
&
:backdrop
{
background-color
:
gtk
(
"@theme_unfocused_bg_color"
);
&
:not
(
separator
)
{
&
:dir
(
ltr
),
&
.left
,
&
.left
:dir
(
rtl
)
{
border-right
:
1px
solid
$ligh_border_color
;
border-left
:
none
;
}
&
:dir
(
rtl
),
&
.right
{
border-left
:
1px
solid
$ligh_border_color
;
border-right
:
none
;
}
}
.sidebar-header
>
separator
{
background-color
:
$ligh_border_color
;
}
row
{
&
:hover
{
}
...
...
@@ -108,6 +127,10 @@
@extend
%selected_items
;
}
}
paned
&
{
&
.left
,
&
.right
,
&
.left
:dir
(
rtl
),
&
:dir
(
rtl
),
&
:dir
(
ltr
),
&
{
border-style
:
none
;
}}
}
separator
.sidebar
{
background-color
:
gtk
(
"@borders"
);
}
// Places sidebar is a special case, since the view here have to look like chrome not content, so we override text color
...
...
src/gtk4/widgets/_sidebar.scss
View file @
8361a06f
...
...
@@ -32,15 +32,37 @@
}
.sidebar
{
border
:
none
;
background-color
:
gtk
(
"@theme_bg_color"
);
border-radius
:
0px
;
border-style
:
none
;
background-color
:
gtk
(
"@theme_base_color"
);
&
:selected
{
@extend
%selected_items
;
}
&
:backdrop
{
background-color
:
gtk
(
"@theme_unfocused_bg_color"
);
&
:not
(
separator
)
{
&
:dir
(
ltr
),
&
.left
,
&
.left
:dir
(
rtl
)
{
border-right
:
1px
solid
$ligh_border_color
;
border-left
:
none
;
}
&
:dir
(
rtl
),
&
.right
{
border-left
:
1px
solid
$ligh_border_color
;
border-right
:
none
;
}
}
.sidebar-header
>
separator
{
background-color
:
$ligh_border_color
;
}
row
{
&
:hover
{
}
&
.activatable
{
border
:
0
;
&
:dir
(
ltr
)
{
...
...
@@ -51,7 +73,7 @@
}
&
.has-open-popup
,
//
this
is
for
indicathing
which
row
generated
a
popover
see
https
:
//
bugzilla
.gnome.org
/
show_bug
.cgi
?
id
=
754411
&
:hover:dir
(
ltr
)
{
@include
selected-item-highlight
();
}
...
...
@@ -105,6 +127,10 @@
@extend
%selected_items
;
}
}
paned
&
{
&
.left
,
&
.right
,
&
.left
:dir
(
rtl
),
&
:dir
(
rtl
),
&
:dir
(
ltr
),
&
{
border-style
:
none
;
}}
}
separator
.sidebar
{
background-color
:
gtk
(
"@borders"
);
}
// Places sidebar is a special case, since the view here have to look like chrome not content, so we override text color
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment