[gnome-software: 1/2] info-window: Move the scrollbar down a bit
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 1/2] info-window: Move the scrollbar down a bit
- Date: Mon, 22 Nov 2021 10:51:41 +0000 (UTC)
commit b11831bb17b257ed6a09316f6016bd527e51d3dd
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Nov 18 15:05:26 2021 +0100
info-window: Move the scrollbar down a bit
This matches the style of the upcoming Libadwaita about window, which is
flat too.
src/gs-info-window.ui | 4 +++-
src/style.css | 14 ++++++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-info-window.ui b/src/gs-info-window.ui
index 80e94be35..f910f82a2 100644
--- a/src/gs-info-window.ui
+++ b/src/gs-info-window.ui
@@ -7,7 +7,9 @@
<property name="icon_name">dialog-information</property>
<property name="default-width">640</property>
<property name="default-height">576</property>
-
+ <style>
+ <class name="info"/>
+ </style>
<child>
<object class="GtkOverlay" id="overlay">
<child type="overlay">
diff --git a/src/style.css b/src/style.css
index 8c83de2d7..eccf73f58 100644
--- a/src/style.css
+++ b/src/style.css
@@ -471,3 +471,17 @@ statuspage.icon-dropshadow image.icon {
0 1px rgba(0,0,0,0.3),
-1px 0 rgba(0,0,0,0.1);
}
+
+window.info scrollbar.vertical {
+ /* The size a typical headerbar takes: 46px + 1px for the bottom border. */
+ margin-top: 47px;
+
+ /* Revelant for scrollbars without .overlay-indicator. */
+ background: none;
+ box-shadow: none;
+}
+
+window.info scrollbar.vertical trough {
+ /* The size a typical headerbar takes: 46px + 1px for the bottom border. */
+ margin-top: 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]