[libadwaita/wip/exalm/stylesheet2: 88/97] stylesheet: Split tooltip styles into a separate window
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/stylesheet2: 88/97] stylesheet: Split tooltip styles into a separate window
- Date: Fri, 9 Apr 2021 12:30:26 +0000 (UTC)
commit a1cf4cf8ee52f7854a6f511f929e14a112aea67c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Apr 9 14:10:58 2021 +0500
stylesheet: Split tooltip styles into a separate window
src/stylesheet/_common.scss | 29 -----------------------------
src/stylesheet/_widgets.scss | 1 +
src/stylesheet/meson.build | 1 +
src/stylesheet/widgets/_tooltip.scss | 25 +++++++++++++++++++++++++
4 files changed, 27 insertions(+), 29 deletions(-)
---
diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 7882bd5..13dae04 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -252,35 +252,6 @@ video {
background: black;
}
-/************
- * Tooltips *
- ************/
-tooltip {
- &.background {
- // background-color needs to be set this way otherwise it gets drawn twice
- // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
- background-color: transparentize(black, 0.2);
- background-clip: padding-box;
- border: 1px solid $tooltip_borders_color; // this subtle border is meant to
- // not make the tooltip melt with
- // very dark backgrounds
- color: white;
- }
-
- &.csd {
- border-radius: 5px;
- box-shadow: none;
- }
-
- padding: 6px 10px;
- border-radius: $window_radius;
- box-shadow: none; // otherwise it gets inherited by windowframe.csd
-
- > box {
- border-spacing: 6px;
- }
-}
-
/********
* Misc *
diff --git a/src/stylesheet/_widgets.scss b/src/stylesheet/_widgets.scss
index cd4fe59..21ffc9f 100644
--- a/src/stylesheet/_widgets.scss
+++ b/src/stylesheet/_widgets.scss
@@ -24,6 +24,7 @@
@import 'widgets/spin-button';
@import 'widgets/switch';
@import 'widgets/toolbars';
+@import 'widgets/tooltip';
@import 'widgets/trees';
@import 'widgets/views';
@import 'widgets/window';
diff --git a/src/stylesheet/meson.build b/src/stylesheet/meson.build
index a4232e0..4770696 100644
--- a/src/stylesheet/meson.build
+++ b/src/stylesheet/meson.build
@@ -46,6 +46,7 @@ if not fs.exists('Adwaita-light.css')
'widgets/_spin-button.scss',
'widgets/_switch.scss',
'widgets/_toolbars.scss',
+ 'widgets/_tooltip.scss',
'widgets/_trees.scss',
'widgets/_views.scss',
'widgets/_window.scss',
diff --git a/src/stylesheet/widgets/_tooltip.scss b/src/stylesheet/widgets/_tooltip.scss
new file mode 100644
index 0000000..b5c339c
--- /dev/null
+++ b/src/stylesheet/widgets/_tooltip.scss
@@ -0,0 +1,25 @@
+tooltip {
+ &.background {
+ // background-color needs to be set this way otherwise it gets drawn twice
+ // see https://bugzilla.gnome.org/show_bug.cgi?id=736155 for details.
+ background-color: transparentize(black, 0.2);
+ background-clip: padding-box;
+ border: 1px solid $tooltip_borders_color; // this subtle border is meant to
+ // not make the tooltip melt with
+ // very dark backgrounds
+ color: white;
+ }
+
+ &.csd {
+ border-radius: 5px;
+ box-shadow: none;
+ }
+
+ padding: 6px 10px;
+ border-radius: $window_radius;
+ box-shadow: none; // otherwise it gets inherited by windowframe.csd
+
+ > box {
+ border-spacing: 6px;
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]