aboutsummaryrefslogtreecommitdiff
path: root/gui/gtk.nix
blob: 06e76c195de3df86c46f7e81167efa78c59e9b54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{ config, pkgs, pkgs-personal, ... }:

let
  hidpi = config.custom.hidpi;

in {
  gtk = {
    enable = true;

    theme = {
      name = "oomox";
      package = pkgs-personal.customizable.oomox-gtk-theme {
        accent_bg  = "aadb0f";
        bg         = "d8d8d8";
        fg         = "101010";
        btn_bg     = "f5f5f5";
        btn_fg     = "111111";
        caret_size = 0.04;
        caret1_fg  = "101010";
        caret2_fg  = "101010";
        hdr_btn_bg = "161616";
        hdr_btn_fg = "aadb0f";
        menu_bg    = "909636";
        menu_fg    = "1a1a1a";
        sel_bg     = "aadb0f";
        sel_fg     = "101010";
        txt_bg     = "ffffff";
        txt_fg     = "101010";
        gradient   = 0.0;
        roundness  = 0;
        spacing    = if hidpi then 5 else 1;
        wm_border_focus   = "909636";
        wm_border_unfocus = "909636";
        gtk3_generate_dark = false;
        gtk2_hidpi = false;
      };
    };

    iconTheme = {
      name    = "oomox-archdroid";
      package = pkgs-personal.customizable.oomox-archdroid-icon-theme "909636";
    };

    font = {
      name    = "Iosevka 10";
      package = pkgs.iosevka;
    };

    gtk3 = {
      extraConfig = {
        gtk-decoration-layout = "";
      };
      extraCss = ''
        menubar, .menubar {
          -GtkWidget-window-dragging: false;
        }
      '';
    };
  };

  home.packages = [
  # enable persistent settings in e.g. file chooser dialogs
    pkgs.dconf
    pkgs.gnome3.dconf-editor
  ];

  qt = {
    enable = true;
    platformTheme = "gtk";
  };

  home.sessionVariables = {
    QT_AUTO_SCREEN_SCALE_FACTOR = 0;
  };
}