[gtksourceview/wip/chergert/gsv-gtk4: 241/259] assistant: tweak positioning
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/chergert/gsv-gtk4: 241/259] assistant: tweak positioning
- Date: Mon, 21 Sep 2020 23:27:49 +0000 (UTC)
commit 461d3b25388ff6f5042829c26f60ec8fc743e7f6
Author: Christian Hergert <chergert redhat com>
Date: Wed Sep 9 16:46:24 2020 -0700
assistant: tweak positioning
gtksourceview/GtkSourceView.css | 4 +++-
gtksourceview/gtksourceassistant.c | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/GtkSourceView.css b/gtksourceview/GtkSourceView.css
index ff49f32c..ca514674 100644
--- a/gtksourceview/GtkSourceView.css
+++ b/gtksourceview/GtkSourceView.css
@@ -8,7 +8,6 @@ GtkSourceAssistant {
box-shadow: 0 3px 5px 1px @wm_shadow,
0 0 0 1px alpha(@wm_border, 1);
outline: 1px solid alpha(@wm_highlight, 0.25);
- margin: 20px;
background: @theme_bg_color;
}
@@ -100,8 +99,11 @@ GtkSourceAssistant.informative label {
GtkSourceAssistant.informative image {
margin: 0 6px 0 0;
padding: 6px 10px 6px 9px;
+ min-width: 16px;
+ min-height: 16px;
border-top-left-radius: 7px;
border-bottom-left-radius: 7px;
+ background-color: @borders;
}
GtkSourceAssistant.informative.warning {
diff --git a/gtksourceview/gtksourceassistant.c b/gtksourceview/gtksourceassistant.c
index 1f08abcc..b9cd434a 100644
--- a/gtksourceview/gtksourceassistant.c
+++ b/gtksourceview/gtksourceassistant.c
@@ -196,7 +196,7 @@ _gtk_source_assistant_real_get_offset (GtkSourceAssistant *assistant,
}
else
{
- *y = margin.bottom - 1;
+ *y = (margin.bottom / 3 * 2) - 1;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]