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
8ea159b8
Commit
8ea159b8
authored
Mar 17, 2022
by
Artem Grinev
Committed by
Artem Grinev
Mar 23, 2022
Browse files
GTK3,4: Improve ComboBox visuals
parent
cbb31871
Changes
6
Hide whitespace changes
Inline
Side-by-side
src/gtk3/widgets/_button.scss
View file @
8ea159b8
...
...
@@ -389,6 +389,24 @@ combobox {
padding-top
:
4px
;
padding-bottom
:
4px
;
}
>
box
>
button
.combo
:only-child
{
//Force shadow for single combobox buttons
@include
neobutton
(
normal
)
arrow
{
min-width
:
14px
;
&
:dir
(
rtl
)
{
margin-left
:
-3px
;
}
&
:dir
(
ltr
)
{
margin-right
:
-3px
;
}
}
}
}
%needs_attention
{
...
...
src/gtk3/widgets/_entry.scss
View file @
8ea159b8
...
...
@@ -207,3 +207,21 @@ treeview entry {
}
}
}
combobox
>
box
>
button
.combo
{
background
:
none
;
@include
entry
(
normal
)
&:
focus
{
@include
entry
(
focus
);
}
&
:disabled
{
@include
entry
(
insensitive
);
}
&
:backdrop
{
@include
entry
(
backdrop
);
}
&
:backdrop:disabled
{
@include
entry
(
backdrop-insensitive
);
}
}
src/gtk3/widgets/_headerbar.scss
View file @
8ea159b8
...
...
@@ -41,6 +41,9 @@ headerbar {
}
button
{
@include
neobutton
(
toolbutton
);
//ensure we don't have a shadow on headerbar buttons at all
box-shadow
:
none
;
color
:
gtk
(
"@theme_titlebar_foreground"
);
&
:hover
{
...
...
src/gtk4/widgets/_button.scss
View file @
8ea159b8
...
...
@@ -342,6 +342,24 @@ combobox {
padding-top
:
4px
;
padding-bottom
:
4px
;
}
>
box
>
button
.combo
:only-child
{
//Force shadow for single combobox buttons
@include
neobutton
(
normal
)
arrow
{
min-width
:
14px
;
&
:dir
(
rtl
)
{
margin-left
:
-3px
;
}
&
:dir
(
ltr
)
{
margin-right
:
-3px
;
}
}
}
}
%needs_attention
{
...
...
src/gtk4/widgets/_entry.scss
View file @
8ea159b8
...
...
@@ -207,3 +207,22 @@ treeview entry {
}
}
}
combobox
>
box
>
button
.combo
{
background
:
none
;
@include
entry
(
normal
)
&:
focus
{
@include
entry
(
focus
);
}
&
:disabled
{
@include
entry
(
insensitive
);
}
&
:backdrop
{
@include
entry
(
backdrop
);
}
&
:backdrop:disabled
{
@include
entry
(
backdrop-insensitive
);
}
}
src/gtk4/widgets/_headerbar.scss
View file @
8ea159b8
...
...
@@ -41,6 +41,9 @@ headerbar {
}
button
{
@include
neobutton
(
toolbutton
);
//ensure we don't have a shadow on headerbar buttons at all
box-shadow
:
none
;
color
:
gtk
(
"@theme_titlebar_foreground"
);
&
:hover
{
...
...
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