[libadwaita/wip/snwh/entries] stylesheet: make osd entries use osd style
- From: Sam Hewitt <snwh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/snwh/entries] stylesheet: make osd entries use osd style
- Date: Thu, 2 Dec 2021 18:10:38 +0000 (UTC)
commit fcee3be1a3a1cee9786f2ac77c5a21826d9cf865
Author: Sam Hewitt <sam snwh org>
Date: Thu Dec 2 14:40:32 2021 -0330
stylesheet: make osd entries use osd style
src/stylesheet/widgets/_entries.scss | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/stylesheet/widgets/_entries.scss b/src/stylesheet/widgets/_entries.scss
index 187a3afd..06c0885d 100644
--- a/src/stylesheet/widgets/_entries.scss
+++ b/src/stylesheet/widgets/_entries.scss
@@ -17,8 +17,11 @@ entry {
@include focus-ring($focus-state: ':focus-within');
+ .osd &:active,
.osd &:focus-within {
outline-color: $osd_focus_color;
+ background-color: $osd_bg_color;
+ color: $osd_fg_color;
}
> text {
@@ -32,6 +35,12 @@ entry {
}
}
+ &:active,
+ &:focus-within {
+ background-color: $view_bg_color;
+ color: $view_fg_color;
+ }
+
&.flat {
&:focus-within, &:disabled, & {
min-height: 0;
@@ -42,11 +51,6 @@ entry {
}
}
- &:active,
- &:focus-within {
- background-color: $view_bg_color;
- }
-
&:disabled { filter: opacity($disabled_opacity); }
// entry error and warning style
@@ -132,4 +136,4 @@ treeview entry {
&:focus-within { border-color: $accent_bg_color; }
}
-}
+}
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]