v0.33.0: title bars drawn by LinTunes, in the window's grey
On Wayland Qt paints the title bar through its adwaita decoration plugin, which hardcodes pure white in light mode and ignores the palette. Every window now goes frameless and gets an app-drawn bar in the palette's Window color, so it follows the Background setting. Buttons follow GNOME's button-layout; moving, snapping and edge resizing still go through the compositor. Windows grow by the bar's height so their contents keep the size they had.
This commit is contained in:
@@ -132,6 +132,7 @@ def run_gui(data_dir: Path, files: list[Path],
|
||||
from lintunes.preferences import Preferences
|
||||
from lintunes.lastfm import LastFm
|
||||
from lintunes.gui.main_window import MainWindow
|
||||
from lintunes.gui import titlebar
|
||||
from lintunes.gui.track_table import ClickToJumpScrollStyle
|
||||
from lintunes.mpris import setup_mpris
|
||||
from lintunes.sync_watcher import LibrarySyncWatcher
|
||||
@@ -152,6 +153,9 @@ def run_gui(data_dir: Path, files: list[Path],
|
||||
|
||||
prefs = Preferences(data_dir)
|
||||
theme.apply_theme(app, prefs)
|
||||
# Qt's own Wayland title bar is hardcoded white; draw ours instead.
|
||||
if app.platformName() == "wayland":
|
||||
titlebar.install(app)
|
||||
manager = LibraryManager(library, data_dir)
|
||||
if new_library:
|
||||
manager.seed_new_library()
|
||||
|
||||
Reference in New Issue
Block a user