[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    [PATCH] smaller window decorations: "Quartz extra slim" -somebody
From:       "ab" <abraendle () gmx ! de>
Date:       2004-12-27 23:41:21
Message-ID: 001701c4ec6d$92b78e70$850012c0 () TOWER1
[Download RAW message or body]

*** downloading the source
kdebase-3.3.0.tar.bz2 download+extract
cd kdebase-3.3.0
./configure


*** apply the diff below

*** Compiling
cd kwin/lib         (this step must be performed, otherwise some libs are missing)
make

cd kwin/client/quartz/             (the quartz sources are in this directory)
make
make install (this installes just kwin3_quartz.la)

*** Test

(re-)start kde
control-center>window decorations>quartz

Remark: I use it together with Adobe Helvetica 10 as font, and found it looks very good (not too
small) with the parameters in the patch.

******************************************************************************

Perhaps somebody can integrate this patch into the main kde line. This would provide smaller
titlebars, something that is IMHO needed in some form (See KDE bug ...., etc).
http://bugs.kde.org/show_bug.cgi?id=74967

For integration, I suggest adding a checkbox in the control center-module, like this:

[ ] quartz extra slim

(without a check you would get the normal quartz)

******************************************************************************

3 changes:
4 -> 2
18 -> 14
0 -> -1
******************************************************************************
--- orig/quartz.cpp 2004-08-05 20:57:20.000000000 +0200
+++ quartz.cpp 2004-09-14 22:19:45.000000000 +0200
@@ -205,12 +205,16 @@
  case BorderTiny:
  case BorderNormal:
  default:
-  borderWidth = 4;
+  borderWidth = 2; // instead of 4
  }
-
+/*
  normalTitleHeight = QFontMetrics(options()->font(true)).height();
  if (normalTitleHeight < 18) normalTitleHeight = 18;
  if (normalTitleHeight < borderWidth) normalTitleHeight = borderWidth;
+*/
+ normalTitleHeight = QFontMetrics(options()->font(true)).height()-1;
+ if (normalTitleHeight < 14) normalTitleHeight = 14;
+ if (normalTitleHeight < borderWidth) normalTitleHeight = borderWidth;

  toolTitleHeight = QFontMetrics(options()->font(true, true)).height();
  if (toolTitleHeight < 12) toolTitleHeight = 12;
******************************************************************************
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic