From 4cb743b931f57fa0cfbc30ad59f58f2f49caf500 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Wed, 2 Dec 2020 10:56:19 +0100 Subject: [PATCH] Performance: do not draw header bar bottom border It is not even noticable and reduces performance by having more pixels to redraw every frame. --- clapper_src/headerbar.js | 1 + css/styles.css | 3 +++ 2 files changed, 4 insertions(+) diff --git a/clapper_src/headerbar.js b/clapper_src/headerbar.js index 6a2158e2..9060b80b 100644 --- a/clapper_src/headerbar.js +++ b/clapper_src/headerbar.js @@ -8,6 +8,7 @@ class ClapperHeaderBar extends Gtk.HeaderBar super._init({ can_focus: false, }); + this.add_css_class('noborder'); this.set_title_widget(this._createWidgetForWindow(window)); let clapperWidget = window.get_child(); diff --git a/css/styles.css b/css/styles.css index 6c6992d7..4b5a47d7 100644 --- a/css/styles.css +++ b/css/styles.css @@ -152,6 +152,9 @@ scale marks { .nobackground { background: none; } +.noborder { + border: none; +} .controlsbox { background: @theme_bg_color; }