Compare commits

..

No commits in common. "c8b4dcb15a4e041bfcb910d9d96f5ebbb1bde42b" and "eb99d0526c1d5c966ecdaf8a7d954f442fc28375" have entirely different histories.

2 changed files with 39 additions and 89 deletions

View file

@ -18,7 +18,7 @@ let
auto-tab-discard auto-tab-discard
# redirector # For nixos wiki # redirector # For nixos wiki
# darkreader darkreader
facebook-container facebook-container
control-panel-for-twitter control-panel-for-twitter
@ -156,41 +156,17 @@ let
# enable userChrome # enable userChrome
"toolkit.legacyUserProfileCustomizations.stylesheets" = true; "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"devtools.chrome.enabled" = true;
"devtools.debugger.remote-enabled" = true;
# disable translations for some languages
"browser.translations.neverTranslateLanguages" = ["en" "de"];
"browser.translations.automaticallyPopup" = false;
}; };
userChrome = userChrome =
let let
name = override.color or colors.grey; name = override.color or colors.grey;
value = colorValues."${name}".normal; value = colorValues."${name}".normal;
valueBright = colorValues."${name}".highlight; valueBright = colorValues."${name}".bright;
valueDark = colorValues."${name}".inactive; valueDark = colorValues."${name}".dark;
in in
'' ''
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ /* TODO: set regular toolbar background color */
#nav-bar {
background-color: ${value} !important;
color: black !important;
}
/* don't show close button on background tabs */
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected]):not([pinned]):not([hover]) .tab-close-button {
display: none !important;
}
/* show close button on hover */
#tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab:not([selected]):not([pinned]):hover .tab-close-button {
display: -moz-inline-box !important;
}
/* default */ /* default */
#TabsToolbar { #TabsToolbar {
@ -200,13 +176,11 @@ let
/* default tab */ /* default tab */
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab .tab-content { #TabsToolbar #tabbrowser-tabs .tabbrowser-tab .tab-content {
background: ${value} !important; background: ${value} !important;
opacity: 0.8
} }
/* selected tab */ /* selected tab */
#TabsToolbar #tabbrowser-tabs .tabbrowser-tab[selected] .tab-content { #TabsToolbar #tabbrowser-tabs .tabbrowser-tab[selected] .tab-content {
background: ${valueBright} !important; background: ${valueBright} !important;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
} }
/* hovered tab */ /* hovered tab */
@ -243,54 +217,54 @@ let
colorValues = { colorValues = {
blue = { blue = {
normal = "#49b1fc"; normal = "#37adff";
highlight = "#05a9fc"; # Brighter blue bright = "#00acff"; # Brighter blue
inactive = "#1f81c6"; # Darker blue dark = "#2c8dd3"; # Darker blue
}; };
green = { green = {
normal = "#51cd00"; normal = "#51cd00";
highlight = "#5ae200"; # Brighter green bright = "#5ae200"; # Brighter green
inactive = "#45ad00"; # Darker green dark = "#45ad00"; # Darker green
}; };
orange = { orange = {
normal = "#ff9800"; normal = "#ff9800";
highlight = "#ffb74d"; # Brighter orange bright = "#ffb74d"; # Brighter orange
inactive = "#c76a00"; # Darker orange dark = "#c76a00"; # Darker orange
}; };
red = { red = {
normal = "#f6685e"; normal = "#f6685e";
highlight = "#ff4336"; # Brighter red bright = "#ff4336"; # Brighter red
inactive = "#aa463f"; # Darker red dark = "#aa463f"; # Darker red
}; };
yellow = { yellow = {
normal = "#fced4b"; normal = "#ffeb3b";
highlight = "#fce705"; # Brighter yellow bright = "#fff350"; # Brighter yellow
inactive = "#dbbe00"; # Darker yellow dark = "#c6a700"; # Darker yellow
}; };
purple = { purple = {
normal = "#9c27b0"; normal = "#9c27b0";
highlight = "#ab47bc"; # Brighter purple bright = "#ab47bc"; # Brighter purple
inactive = "#7b1fa2"; # Darker purple dark = "#7b1fa2"; # Darker purple
}; };
pink = { pink = {
normal = "#e91e63"; normal = "#e91e63";
highlight = "#ff6090"; # Brighter pink bright = "#ff6090"; # Brighter pink
inactive = "#c2185b"; # Darker pink dark = "#c2185b"; # Darker pink
}; };
brown = { brown = {
normal = "#795548"; normal = "#795548";
highlight = "#a88b6f"; # Brighter brown bright = "#a88b6f"; # Brighter brown
inactive = "#4e3b30"; # Darker brown dark = "#4e3b30"; # Darker brown
}; };
grey = { grey = {
normal = "#9e9e9e"; normal = "#9e9e9e";
highlight = "#bdbdbd"; # Brighter grey bright = "#bdbdbd"; # Brighter grey
inactive = "#757575"; # Darker grey dark = "#757575"; # Darker grey
}; };
teal = { teal = {
normal = "#009688"; normal = "#009688";
highlight = "#26c6da"; # Brighter teal bright = "#26c6da"; # Brighter teal
inactive = "#00796b"; # Darker teal dark = "#00796b"; # Darker teal
}; };
}; };
@ -309,52 +283,32 @@ in
isDefault = true; isDefault = true;
color = colors.blue; color = colors.blue;
}; };
"comms" = mkProfile { "personal-finance" = mkProfile {
id = 1; id = 1;
color = colors.blue; color = colors.green;
}; };
"admin" = mkProfile { "business" = mkProfile {
id = 2; id = 2;
color = colors.blue; color = colors.teal;
}; };
"infra" = mkProfile { "dev-admin" = mkProfile {
id = 3; id = 3;
color = colors.blue; color = colors.teal;
}; };
"finance" = mkProfile { "dev-holo" = mkProfile {
id = 4; id = 4;
color = colors.red;
};
"dev-infra" = mkProfile {
id = 5;
color = colors.yellow; color = colors.yellow;
}; };
"business-admin" = mkProfile {
id = 5;
color = colors.teal;
};
"business-comms" = mkProfile {
id = 6;
color = colors.teal;
};
"business-dev" = mkProfile {
id = 7;
color = colors.teal;
};
"holo-dev" = mkProfile {
id = 8;
color = colors.green;
};
"holo-infra" = mkProfile {
id = 9;
color = colors.green;
};
"holo-comms" = mkProfile {
id = 10;
color = colors.green;
};
"justyna" = mkProfile { "justyna" = mkProfile {
id = 11; id = 6;
color = colors.pink; color = colors.pink;
}; };
"justyna-office" = mkProfile { "justyna-office" = mkProfile {
id = 12; id = 7;
color = colors.pink; color = colors.pink;
}; };
}; };

View file

@ -69,10 +69,6 @@ in
[[extensions]] [[extensions]]
publisher_name = "ibecker" publisher_name = "ibecker"
extension_name = "treefmt-vscode" extension_name = "treefmt-vscode"
[[extensions]]
publisher_name = "AntiAntiSepticeye"
extension_name = "vscode-color-picker"
''; '';
nix4vscodeNix = nix4vscodeNix =
pkgs.runCommand "nix4vscode.nix" pkgs.runCommand "nix4vscode.nix"