From 508d7dca3aca9d769bbdd130cc1459bab8fb69e5 Mon Sep 17 00:00:00 2001 From: abakkk Date: Fri, 13 Mar 2020 11:08:00 +0100 Subject: [PATCH] fix helper OSD display --- draw.js | 3 ++- stylesheet.css | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/draw.js b/draw.js index 5567680..cb542ac 100644 --- a/draw.js +++ b/draw.js @@ -1075,10 +1075,11 @@ var DrawingHelper = new Lang.Class({ Extends: St.ScrollView, _init: function(params, monitor) { + params.style_class = 'osd-window draw-on-your-screen-helper'; this.parent(params); this.monitor = monitor; this.hide(); - this.vbox = new St.BoxLayout({ style_class: 'osd-window draw-on-your-screen-helper', vertical: true }); + this.vbox = new St.BoxLayout({ vertical: true }); this.add_actor(this.vbox); this.vbox.add_child(new St.Label({ text: _("Global") })); diff --git a/stylesheet.css b/stylesheet.css index bd02a07..4d7e94f 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -13,17 +13,22 @@ } /* "Ctrl + F1" on-screen-display */ - + .draw-on-your-screen-helper { - margin: 0; + margin: 0px; +} + +.draw-on-your-screen-helper > StBoxLayout { + margin: 8px; + margin-right: 16px; spacing: 0.5em; } -.draw-on-your-screen-helper StBoxLayout { +.draw-on-your-screen-helper > StBoxLayout StBoxLayout { spacing: 7em; } -.draw-on-your-screen-helper StBoxLayout StLabel { +.draw-on-your-screen-helper > StBoxLayout StBoxLayout StLabel { text-align: right; font-weight: normal; }