Skip to content

Fix floating title bar separator appearing when disabled#337

Open
kbkozlev wants to merge 1 commit into
Bali10050:mainfrom
kbkozlev:main
Open

Fix floating title bar separator appearing when disabled#337
kbkozlev wants to merge 1 commit into
Bali10050:mainfrom
kbkozlev:main

Conversation

@kbkozlev

@kbkozlev kbkozlev commented Jun 6, 2026

Copy link
Copy Markdown

Description
Fixes an issue where a visible separator line appeared between the title bar and main window even when the floating title bar feature was disabled. The separator was particularly noticeable at higher scaling levels (120%, 145%).

Root Cause
The separator was being drawn unconditionally in the paintTitleBar() function before checking whether the floating title bar was enabled. This caused it to render in both floating and non-floating title bar modes.

Changes
Moved the separator drawing code inside the if (m_internalSettings->floatingTitlebar()) conditional block
The separator now only renders when the floating title bar is actually enabled
The traditional (non-floating) title bar path no longer draws this separator

File Changed
darklydecoration.cpp - Decoration::paintTitleBar() function

Testing
The separator no longer appears when floating title bar is disabled
No visual changes when floating title bar is enabled
Should resolve the issue across all scaling levels

Closes
Fixes #320

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Floating title bar is disabled, but there is still a visible line

1 participant