https://bugs.kde.org/show_bug.cgi?id=436559

            Bug ID: 436559
           Summary: GTK3 CSD buttons are noticeably smaller than regular
                    Breeze Qt style
           Product: Breeze
           Version: 5.21.4
          Platform: unspecified
                OS: All
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: gtk theme
          Assignee: uhh...@gmail.com
          Reporter: patov...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
Minimize, Maximize and Close buttons on GTK3 apps that use CSD are noticeably
smaller than the regular Breeze Qt style decorations.


STEPS TO REPRODUCE
Compare say Dolphin window decorations to Foliate's or Chromium's (with CSD
enabled).


OBSERVED RESULT
Notice how GTK3 CSD buttons are significantly smaller.


EXPECTED RESULT
Window decoration buttons among both toolkits should be the same size.


SOFTWARE/OS VERSIONS
Operating System: FreeBSD 13.0-RELEASE
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2


ADDITIONAL INFORMATION
I've come up with a workaround: If one modifies "~/.config/gtk-3.0/gtk.css" so
it looks like this, the size of the buttons become the same as Breeze Qt:

@import 'colors.css';

window headerbar.default-decoration button.titlebutton,
window .titlebar.default-decoration button.titlebutton {
  padding: 0px;
  min-height: 20px;
  min-width: 20px;
  margin: 0; }

window headerbar button.titlebutton,
window .titlebar button.titlebutton {
  padding: 0px; }
  window headerbar button.titlebutton.close,
  window .titlebar button.titlebutton.close {
    padding: 0px;
    background-size: 20px 20px; }

  window headerbar button.titlebutton.maximize,
  window .titlebar button.titlebutton.maximize {
    padding: 0px;
    background-size: 20px 20px; }

  window headerbar button.titlebutton.minimize,
  window .titlebar button.titlebutton.minimize {
    padding: 0px;
    background-size: 20px 20px; }

.maximized window headerbar button.titlebutton.maximize, .maximized window
.titlebar button.titlebutton.maximize {
  padding: 0px;
  background-size: 20px 20px; }

window.background.chromium {
  padding: 2px; }
  window.background.chromium headerbar button.titlebutton.close,
  window.background.chromium .titlebar button.titlebutton.close {
    padding: 2px; }
  window.background.chromium headerbar button.titlebutton.maximize,
  window.background.chromium .titlebar button.titlebutton.maximize {
    padding: 2px; }
  window.background.chromium headerbar button.titlebutton.minimize,
  window.background.chromium .titlebar button.titlebutton.minimize {
    padding: 2px; }
  window.background.chromium.maximized headerbar button.titlebutton.maximize,
  .maximized .titlebar button.titlebutton.maximize {
    padding: 2px; }


With this, most GTK 3 apps even sport their headerbar buttons with less padding
between them, and so they resemble better the Breeze Qt titlebar buttons.
Except Chromium, but that's always been the case as far as I remember. Still,
at least the size of the buttons becomes more consistent.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to