From 7d79aa97bb25dbf052a1079e15d82f68aa772ee5 Mon Sep 17 00:00:00 2001 From: Rafostar <40623528+Rafostar@users.noreply.github.com> Date: Tue, 23 Feb 2021 16:18:26 +0100 Subject: [PATCH] Use rounded corners with every theme AFAIK there is no way to detect theme rounded corners. Having 2/4 corners rounded in floating mode is not good. --- src/appBase.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/appBase.js b/src/appBase.js index 4f8981c1..9d4b26e7 100644 --- a/src/appBase.js +++ b/src/appBase.js @@ -93,13 +93,14 @@ class ClapperAppBase extends Gtk.Application _onThemeChanged(gtkSettings) { const theme = gtkSettings.gtk_theme_name; + const window = this.active_window; + debug(`user selected theme: ${theme}`); - if( - theme.startsWith('Adwaita') - && !this.active_window.has_css_class('adwrounded') - ) - this.active_window.add_css_class('adwrounded'); + /* FIXME: AFAIK there is no way to detect theme rounded corners. + Having 2/4 corners rounded in floating mode is not good. */ + if(!window.has_css_class('adwrounded')) + window.add_css_class('adwrounded'); if(!theme.endsWith('-dark')) return;