aboutsummaryrefslogtreecommitdiff
path: root/gui/gtk.nix
blob: 31603a7b3e2a437edcb8e9cfb70666cf15b289ff (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
{ config, pkgs, pkgs-personal, ... }:

{
  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    = 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.dconf-editor
  ];

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

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