[libadwaita/wip/exalm/entry-row] stylesheet: Support .error/warning/success for AdwEntryRow
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/entry-row] stylesheet: Support .error/warning/success for AdwEntryRow
- Date: Wed, 1 Jun 2022 12:54:16 +0000 (UTC)
commit d09213be1b15c0b50a867e7d6216844c338712d5
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jun 1 16:53:38 2022 +0400
stylesheet: Support .error/warning/success for AdwEntryRow
src/stylesheet/widgets/_lists.scss | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/src/stylesheet/widgets/_lists.scss b/src/stylesheet/widgets/_lists.scss
index 2cc8136a..a512efb3 100644
--- a/src/stylesheet/widgets/_lists.scss
+++ b/src/stylesheet/widgets/_lists.scss
@@ -153,6 +153,20 @@ row.entry {
font-family: monospace;
}
}
+
+ @each $e_type, $e_color in (error, $error_color),
+ (warning, $warning_color),
+ (success, $success_color) {
+ &.#{$e_type} {
+ @include focus-ring($focus-state: '.focused', $offset: -1px, $fc: gtkalpha(currentColor,
$focus_border_opacity));
+
+ text {
+ > selection:focus-within { background-color: gtkalpha($e_color, .2); }
+
+ > cursor-handle > contents { background-color: currentColor; }
+ }
+ }
+ }
}
/***************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]