about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2022-09-03 06:06:28 +0200
committeraszlig <aszlig@nix.build>2022-09-05 18:57:38 +0200
commitc88fd9eaa12c8a3c06502b09c2056d3c91421952 (patch)
treeb0cff3ad7ede1beed2aca146d3172e76740f3642 /pkgs
parent159f4c8d9c127f51607bf529bf9810c4f1aa3610 (diff)
Use a font point size of 10 on hidpi
With my new laptop, a font size of 12pt is rather large and given that
hidpi displays usually have a quite large resolution (the name might
hint at that), we don't necessarily need to use embedded bitmaps anymore
which was one of the reasons why I used a point size of 12.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/aszlig/psi/config.patch8
-rw-r--r--pkgs/aszlig/psi/default.nix3
2 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/aszlig/psi/config.patch b/pkgs/aszlig/psi/config.patch
index 0fe49d66..ea45fbd5 100644
--- a/pkgs/aszlig/psi/config.patch
+++ b/pkgs/aszlig/psi/config.patch
@@ -131,10 +131,10 @@ index f4b71f53..387793a0 100644
 -                    <contactlist type="QString">Sans Serif,11,-1,5,50,0,0,0,0,0</contactlist>
 -                    <message type="QString">Sans Serif,11,-1,5,50,0,0,0,0,0</message>
 -                    <passive-popup type="QString">Sans Serif,9,-1,5,50,0,0,0,0,0</passive-popup>
-+                    <chat type="QString">Monospace,12,-1,5,50,0,0,0,0,0</chat>
-+                    <contactlist type="QString">Monospace,12,-1,5,50,0,0,0,0,0</contactlist>
-+                    <message type="QString">Monospace,12,-1,5,50,0,0,0,0,0</message>
-+                    <passive-popup type="QString">Monospace,12,-1,5,50,0,0,0,0,0</passive-popup>
++                    <chat type="QString">Monospace,@faceSize@,-1,5,50,0,0,0,0,0</chat>
++                    <contactlist type="QString">Monospace,@faceSize@,-1,5,50,0,0,0,0,0</contactlist>
++                    <message type="QString">Monospace,@faceSize@,-1,5,50,0,0,0,0,0</message>
++                    <passive-popup type="QString">Monospace,@faceSize@,-1,5,50,0,0,0,0,0</passive-popup>
                  </font>
                  <css type="QString" />
              </look>
diff --git a/pkgs/aszlig/psi/default.nix b/pkgs/aszlig/psi/default.nix
index 9f0f12b8..9ca2693f 100644
--- a/pkgs/aszlig/psi/default.nix
+++ b/pkgs/aszlig/psi/default.nix
@@ -6,6 +6,7 @@
 
 , jid ? "something@example.org"
 , resource ? "psi-aszlig"
+, faceSize ? 12
 }:
 
 let
@@ -55,7 +56,7 @@ in stdenv.mkDerivation rec {
     ./keep-urgency-hint.patch
     (substituteAll {
       src = ./config.patch;
-      inherit jid resource;
+      inherit jid resource faceSize;
     })
   ];