From 9099b72cc8521bd42df697a34d91eff02896baab Mon Sep 17 00:00:00 2001 From: stuebinm Date: Tue, 2 Apr 2024 02:59:56 +0200 Subject: element-web: nicer colours --- pkgs/overlay.nix | 1 + pkgs/patches/element-css.patch | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix index c8e91a3..e862613 100644 --- a/pkgs/overlay.nix +++ b/pkgs/overlay.nix @@ -121,6 +121,7 @@ in # the below patches the javascript's assumptions about box height # in the left side bar so that hiding overflow will work correctly # should be .mx_RoomTile's height + 12px + # TODO: once --replace-fail is in stable use that instead preBuild = '' substituteInPlace node_modules/matrix-react-sdk/src/stores/room-list/ListLayout.ts \ --replace "TILE_HEIGHT_PX = 44" "TILE_HEIGHT_PX = 32" diff --git a/pkgs/patches/element-css.patch b/pkgs/patches/element-css.patch index dae7298..4123bab 100644 --- a/pkgs/patches/element-css.patch +++ b/pkgs/patches/element-css.patch @@ -38,10 +38,10 @@ index 000000000..48ae3414f + color: purple; +} +.mx_Username_color5 { -+ color: darkblue; ++ color: #9a308b; +} +.mx_Username_color6 { -+ color: darkslateblue; ++ color: #484dcb; +} +.mx_Username_color7 { + color: darkmagenta; @@ -66,11 +66,11 @@ index 000000000..48ae3414f + background-color: purple; + } + &[data-color="5"] { -+ background-color: darkblue; ++ background-color: #9a308b; + color: black !important; + } + &[data-color="6"] { -+ background-color: darkslateblue; ++ background-color: #484dcb; + } + &[data-color="7"] { + background-color: darkmagenta; -- cgit v1.2.3