[meld] style: Remove legacy dark theme checks
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] style: Remove legacy dark theme checks
- Date: Fri, 5 Jul 2019 01:24:57 +0000 (UTC)
commit bff26dd82ae75becd192dbebf45ac5f6a6ec9d33
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Jul 5 10:07:11 2019 +1000
style: Remove legacy dark theme checks
These don't work any more in current (or even recent GNOME/GTK) and
we're about to replace some of the remaining mechanism anyway.
meld/style.py | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/meld/style.py b/meld/style.py
index 6350aede..18e53320 100644
--- a/meld/style.py
+++ b/meld/style.py
@@ -23,8 +23,6 @@ from typing import (
)
from gi.repository import Gdk
-from gi.repository import GLib
-from gi.repository import Gtk
from gi.repository import GtkSource
from meld.conf import _
@@ -45,12 +43,7 @@ def get_base_style_scheme() -> GtkSource.StyleScheme:
if base_style_scheme:
return base_style_scheme
- env_theme = GLib.getenv('GTK_THEME')
- if env_theme:
- use_dark = env_theme.endswith(':dark')
- else:
- gtk_settings = Gtk.Settings.get_default()
- use_dark = gtk_settings.props.gtk_application_prefer_dark_theme
+ use_dark = False
# As of 3.28, the global dark theme switch is going away.
if not use_dark:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]