Skip to content

Commit

Permalink
fixes #246
Browse files Browse the repository at this point in the history
  • Loading branch information
AnubisNekhet committed Jan 23, 2024
1 parent c35789d commit 58a4966
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 3 deletions.
5 changes: 5 additions & 0 deletions obsidian.css
Original file line number Diff line number Diff line change
Expand Up @@ -6803,6 +6803,11 @@ None of the original code was used and the feature was implemented from scratch.
-webkit-mask-repeat: no-repeat;
}

.anp-file-icons .nav-file .nav-file-title[data-path$=".excalidraw.md"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-5.5'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z'/%3E%3C/svg%3E");
-webkit-mask-repeat: no-repeat;
}

.anp-file-icons .nav-file .nav-file-title[data-path$=".svg"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".bmp"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".jpg"]::before,
Expand Down
85 changes: 85 additions & 0 deletions snippets/extended-colorschemes.css
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ settings:
-
label: Everforest
value: ctp-everforest-dark
-
label: Flexoki
value: ctp-flexoki-dark
-
label: Gruvbox
value: ctp-gruvbox-dark
Expand Down Expand Up @@ -808,6 +811,88 @@ settings:
44;
}

.theme-dark.anp-theme-ext-dark.ctp-flexoki-dark,
.anp-theme-ext-dark.ctp-flexoki-dark .themed-color-wrapper > .theme-dark {
--ctp-ext-rosewater: 245,
224,
220;
--ctp-ext-flamingo: 242,
205,
205;
--ctp-ext-pink: 245,
194,
231;
--ctp-ext-mauve: 203,
166,
247;
--ctp-ext-red: 243,
139,
168;
--ctp-ext-maroon: 235,
160,
172;
--ctp-ext-peach: 250,
179,
135;
--ctp-ext-yellow: 249,
226,
175;
--ctp-ext-green: 166,
227,
161;
--ctp-ext-teal: 148,
226,
213;
--ctp-ext-sky: 137,
220,
235;
--ctp-ext-sapphire: 116,
199,
236;
--ctp-ext-blue: 135,
176,
249;
--ctp-ext-lavender: 180,
190,
254;
--ctp-ext-text: 207,
206,
196;
--ctp-ext-subtext1: 179,
177,
168;
--ctp-ext-subtext0: 158,
156,
148;
--ctp-ext-overlay2: 136,
134,
129;
--ctp-ext-overlay1: 123,
122,
116;
--ctp-ext-overlay0: 111,
110,
105;
--ctp-ext-surface2: 87,
86,
83;
--ctp-ext-surface1: 64,
62,
60;
--ctp-ext-surface0: 52,
51,
49;
--ctp-ext-base: 28,
27,
26;
--ctp-ext-mantle: 16,
15,
15;
--ctp-ext-crust: 8,
7,
7;
}

.theme-dark.anp-theme-ext-dark.ctp-generic-dark,
.anp-theme-ext-dark.ctp-generic-dark .themed-color-wrapper > .theme-dark {
--ctp-ext-rosewater: 245,
Expand Down
6 changes: 5 additions & 1 deletion snippets/src/extended-colorschemes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ settings:
-
label: Everforest
value: ctp-everforest-dark
-
label: Flexoki
value: ctp-flexoki-dark
-
label: Gruvbox
value: ctp-gruvbox-dark
Expand Down Expand Up @@ -118,6 +121,7 @@ settings:
@import "ext-colorschemes/dracula.scss";
@import "ext-colorschemes/everforest-light.scss";
@import "ext-colorschemes/everforest-dark.scss";
@import "ext-colorschemes/flexoki-dark.scss";
@import "ext-colorschemes/generic-dark.scss";
@import "ext-colorschemes/gruvbox-dark.scss";
@import "ext-colorschemes/gruvbox-light.scss";
Expand All @@ -144,7 +148,7 @@ $ext-color-list: "rosewater", "flamingo", "pink", "mauve", "red", "maroon",

$ext-theme-list: $theme-atom-light, $theme-amoled-dark, $theme-atom-dark,
$theme-biscuit-dark, $theme-coffee-dark, $theme-dracula,
$theme-everforest-light, $theme-everforest-dark, $theme-generic-dark,
$theme-everforest-light, $theme-everforest-dark, $theme-flexoki-dark, $theme-generic-dark,
$theme-gruvbox-dark, $theme-gruvbox-light, $theme-kanagawa-dark,
$theme-luminescence-light, $theme-material-mint-light,
$theme-material-mint-dark, $theme-nord-dark, $theme-nord-darker,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Core/style-settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2134,11 +2134,11 @@ settings:
type: class-toggle
-
id: anp-full-rainbow-text-color-toggle-light
title: Invert title colors (Dark Mode)
title: Invert title colors (Light Mode)
type: class-toggle
-
id: anp-full-rainbow-text-color-toggle-dark
title: Invert title colors (Light Mode)
title: Invert title colors (Dark Mode)
type: class-toggle
-
id: anp-rainbow-folder-bg-opacity
Expand Down
4 changes: 4 additions & 0 deletions src/modules/Features/file-icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3h7v9H3zm11 0h7v5h-7zm0 9h7v9h-7zM3 16h7v5H3z'/%3E%3C/svg%3E");
-webkit-mask-repeat: no-repeat;
}
.anp-file-icons .nav-file .nav-file-title[data-path$=".excalidraw.md"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-5.5'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z'/%3E%3C/svg%3E");
-webkit-mask-repeat: no-repeat;
}
.anp-file-icons .nav-file .nav-file-title[data-path$=".svg"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".bmp"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".jpg"]::before,
Expand Down
5 changes: 5 additions & 0 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -6803,6 +6803,11 @@ None of the original code was used and the feature was implemented from scratch.
-webkit-mask-repeat: no-repeat;
}

.anp-file-icons .nav-file .nav-file-title[data-path$=".excalidraw.md"]::before {
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13.5V4a2 2 0 0 1 2-2h8.5L20 7.5V20a2 2 0 0 1-2 2h-5.5'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M10.4 12.6a2 2 0 0 1 3 3L8 21l-4 1 1-4Z'/%3E%3C/svg%3E");
-webkit-mask-repeat: no-repeat;
}

.anp-file-icons .nav-file .nav-file-title[data-path$=".svg"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".bmp"]::before,
.anp-file-icons .nav-file .nav-file-title[data-path$=".jpg"]::before,
Expand Down

0 comments on commit 58a4966

Please sign in to comment.