paullinuxthemer / Prof-Gnome

GTK3-gnome-theme
GNU General Public License v2.0
171 stars 16 forks source link

Version 3.5 some title bars very big #6

Open Etamuk opened 4 years ago

Etamuk commented 4 years ago

Hello, at first: thank you for sharing your hard work! Great job!

Since I updated from version 3.4 zo 3.5 some title bars are bigger now. I noticed this for Telegram desktop app and SoftMaker Office-Apps. Please see my screenshots.

Telegram main window (prof-gnome version 3.4, version 3.5 below) Bildschirmfoto von 2020-05-13 20-23-49 Bildschirmfoto von 2020-05-13 20-25-54

Settings window of SoftMaker Office (prof-gnome version 3.4, version 3.5 below) Bildschirmfoto von 2020-05-13 20-24-28 Bildschirmfoto von 2020-05-13 20-25-28 This happens to all SoftMaker windows, I picked this window as example cause its smaller.

Kind regards from Germany

paullinuxthemer commented 4 years ago

I installed both telegram and softmaker. I can not reproduce your problem. What DE,gnome version, distro are you running?

Etamuk commented 4 years ago

I am using Fedora 32 (Workstation Edition) with Gnome 3.36.2, Wayland window manager. My screen is a 4K screen with 3840x2160 pixel. Maybe that´s the problem?

murat-cileli commented 4 years ago

Hello. I can confirm this with Gnome 3.36, 4K screen and 200% scaling.

paullinuxthemer commented 4 years ago

This theme uses REM instead of pixels on certain elements. This conflict with the 200 percent scaling. I have no 4k monitor to test on

paullinuxthemer commented 4 years ago

Maybe het scaling at 110 percent and use 12pixel font?

paullinuxthemer commented 4 years ago

The theme is actually designed for low res to HD.

Etamuk commented 4 years ago

Scaling to 110% and 12px font is not really nice. Its to small for me. No problem. Nevertheless it´s a wonderful theme :-)

murat-cileli commented 4 years ago

3.4.1 version is OK. I will stick with this. And of course it's a wonderful theme. :) Thank you.

andreiromila commented 3 years ago

I absolutely love this theme and wanted to minimize the size of the windows but also the radius which was a bit much too. This is not happening with gnome native applications like "Files", "Tweaks" or "Calculator" but it does with Gimp, VLC, Postman etc...

I added the following code at the end of the gtk.css file (in gtk3.0 folder), and restarted (Alt + F2 then "r" and Enter):

/**
 * Some Tweaks for 4k Monitors (200% scale)
 */
 headerbar.default-decoration,
 .csd headerbar.default-decoration,
 headerbar.default-decoration:backdrop,
 .csd headerbar.default-decoration:backdrop,
 .default-decoration.titlebar:not(headerbar),
 .csd .default-decoration.titlebar:not(headerbar),
 .default-decoration.titlebar:backdrop:not(headerbar),
 .csd .default-decoration.titlebar:backdrop:not(headerbar) {
     /** Application Header size */
     /*  min-height: 1.7875rem; */
     min-height: 1.2rem;
 }

 .background .titlebar {
     /* Border Radius */
     /*border-top-left-radius: 0.4125rem;8px;*/
     /*border-top-right-radius: 0.4125rem;8px;*/
     border-top-left-radius : 8px;
     border-top-right-radius: 8px;
 }

 decoration {
     /* Radius for no Gnome Windows */
     /* border-radius: 0.4125rem 0.4125rem 0 0; */
     border-radius: 8px 8px 0 0;
 }

Results (before): Before_Theme

After: After_Theme

Hope it is helpful.

Etamuk commented 3 years ago

A big Thank you to you @andreiromila I tried this out now and it works fine.

Very nice! :-)

biokomiker commented 3 years ago

A big Thank you to you @andreiromila and @paullinuxthemer: a nice tweak and a beautiful theme !

The hack works great on 4k screen with 175%

In addition I have Pixelsaver extension to get rid of header bar of maximized windows.