|
1 | | -/* Maple Theme v1.2.5 For Obsidian */ |
| 1 | +/* Maple Theme v1.3.0 For Obsidian */ |
2 | 2 | /* @settings |
3 | 3 | id: maple-basic |
4 | 4 | name: Maple Basic |
@@ -91,6 +91,46 @@ settings: |
91 | 91 | default: "#" |
92 | 92 | format: hsl-split |
93 | 93 | opacity: false |
| 94 | + - id: color-modify-bg-light |
| 95 | + type: class-toggle |
| 96 | + title: Modify Background Colors |
| 97 | + title.zh: 修改背景颜色 |
| 98 | + - id: setting-bg-primary-light-hsl |
| 99 | + type: variable-color |
| 100 | + title: Primary Background Color |
| 101 | + title.zh: 主背景色 |
| 102 | + description: Background color for main area, e.g. editor, setting panel |
| 103 | + description.zh: 主要区域的背景色,例如编辑器和设置面板 |
| 104 | + default: "#" |
| 105 | + format: hsl-values |
| 106 | + opacity: false |
| 107 | + - id: setting-bg-primary-alt-light-hsl |
| 108 | + type: variable-color |
| 109 | + title: Block Background Color |
| 110 | + title.zh: 块背景色 |
| 111 | + description: Background color for blocks in main area, e.g. codeblock, blockquote |
| 112 | + description.zh: 主要区域内的块的背景色,例如代码块、引言块 |
| 113 | + default: "#" |
| 114 | + format: hsl-values |
| 115 | + opacity: false |
| 116 | + - id: setting-bg-secondary-light-hsl |
| 117 | + type: variable-color |
| 118 | + title: Secondary Background Color |
| 119 | + title.zh: 次背景色 |
| 120 | + description: Background color in secondary area, e.g. sidebar |
| 121 | + description.zh: 次要区域的背景色,例如侧边栏 |
| 122 | + default: "#" |
| 123 | + format: hsl-values |
| 124 | + opacity: false |
| 125 | + - id: setting-bg-frame-light |
| 126 | + type: variable-color |
| 127 | + title: Top Bar Background Color |
| 128 | + title.zh: 顶栏背景色 |
| 129 | + description: Background color in the top area, e.g. titlebar, tab container |
| 130 | + description.zh: 顶栏的背景色,例如标题栏、标签栏 |
| 131 | + default: "#" |
| 132 | + format: hsl |
| 133 | + opacity: false |
94 | 134 | - id: title-dark-mode |
95 | 135 | title: Dark Mode |
96 | 136 | title.zh: 暗色模式 |
@@ -143,6 +183,46 @@ settings: |
143 | 183 | default: "#" |
144 | 184 | format: hsl-split |
145 | 185 | opacity: false |
| 186 | + - id: color-modify-bg-dark |
| 187 | + type: class-toggle |
| 188 | + title: Modify Background Colors |
| 189 | + title.zh: 修改背景颜色 |
| 190 | + - id: setting-bg-primary-dark-hsl |
| 191 | + type: variable-color |
| 192 | + title: Primary Background Color |
| 193 | + title.zh: 主背景色 |
| 194 | + description: Background color for main area, e.g. editor, setting panel |
| 195 | + description.zh: 主要区域的背景色,例如编辑器和设置面板 |
| 196 | + default: "#111" |
| 197 | + format: hsl-values |
| 198 | + opacity: false |
| 199 | + - id: setting-bg-primary-alt-dark-hsl |
| 200 | + type: variable-color |
| 201 | + title: Block Background Color |
| 202 | + title.zh: 块背景色 |
| 203 | + description: Background color for blocks in main area, e.g. codeblock, blockquote |
| 204 | + description.zh: 主要区域内的块的背景色,例如代码块、引言块 |
| 205 | + default: "#111" |
| 206 | + format: hsl-values |
| 207 | + opacity: false |
| 208 | + - id: setting-bg-secondary-dark-hsl |
| 209 | + type: variable-color |
| 210 | + title: Secondary Background Color |
| 211 | + title.zh: 次背景色 |
| 212 | + description: Background color in secondary area, e.g. sidebar |
| 213 | + description.zh: 次要区域的背景色,例如侧边栏 |
| 214 | + default: "#111" |
| 215 | + format: hsl-values |
| 216 | + opacity: false |
| 217 | + - id: setting-bg-frame-dark |
| 218 | + type: variable-color |
| 219 | + title: Top Bar Background Color |
| 220 | + title.zh: 顶栏背景色 |
| 221 | + description: Background color in the top area, e.g. titlebar, tab container |
| 222 | + description.zh: 顶栏的背景色,例如标题栏、标签栏 |
| 223 | + default: "#111" |
| 224 | + format: hsl |
| 225 | + opacity: false |
146 | 226 | - id: title-layout |
147 | 227 | title: Layout |
148 | 228 | title.zh: 布局 |
@@ -362,7 +442,7 @@ settings: |
362 | 442 | type: variable-text |
363 | 443 | title: Setting Panel Header Title |
364 | 444 | title.zh: 设置面板标题 |
365 | | - default: Maple 1.2.5 |
| 445 | + default: Maple 1.3.0 |
366 | 446 | quotes: true |
367 | 447 | - id: modal-header-search |
368 | 448 | type: class-toggle |
@@ -2241,6 +2321,22 @@ body { |
2241 | 2321 | --theme-accent-inactive-s: var(--setting-color-inactive-custom-light-s); |
2242 | 2322 | --theme-accent-inactive-l: var(--setting-color-inactive-custom-light-l); |
2243 | 2323 | } |
| 2324 | +.theme-light.color-use-custom.color-modify-bg-light { |
| 2325 | + --default-mod-bg-hsl: 0, 0%, 93%; |
| 2326 | + --background-primary-hsl: var( |
| 2327 | + --setting-bg-primary-light-hsl, |
| 2328 | + var(--default-mod-bg-hsl) |
| 2329 | + ); |
| 2330 | + --background-primary-alt-hsl: var( |
| 2331 | + --setting-bg-primary-alt-light-hsl, |
| 2332 | + var(--default-mod-bg-hsl) |
| 2333 | + ); |
| 2334 | + --background-secondary-hsl: var( |
| 2335 | + --setting-bg-secondary-light-hsl, |
| 2336 | + var(--default-mod-bg-hsl) |
| 2337 | + ); |
| 2338 | + --frame-bg: var(--setting-bg-frame-light, hsl(var(--default-mod-bg-hsl))); |
| 2339 | +} |
2244 | 2340 |
|
2245 | 2341 | .theme-dark { |
2246 | 2342 | --color-red-rgb: 209.304, 137.496, 137.496; |
@@ -2327,14 +2423,30 @@ body { |
2327 | 2423 | .theme-dark.color-use-custom.color-active-alt-dark { |
2328 | 2424 | --theme-accent-h: calc(var(--base-accent-h) + 60); |
2329 | 2425 | } |
2330 | | -.theme-dark.color-use-custom.theme-dark.color-use-custom.color-active-custom-dark { |
| 2426 | +.theme-dark.color-use-custom.color-active-custom-dark { |
2331 | 2427 | --theme-accent-active-h: var(--setting-color-active-custom-dark-h); |
2332 | 2428 | --theme-accent-active-s: var(--setting-color-active-custom-dark-s); |
2333 | 2429 | --theme-accent-active-l: var(--setting-color-active-custom-dark-l); |
2334 | 2430 | --theme-accent-inactive-h: var(--setting-color-inactive-custom-dark-h); |
2335 | 2431 | --theme-accent-inactive-s: var(--setting-color-inactive-custom-dark-s); |
2336 | 2432 | --theme-accent-inactive-l: var(--setting-color-inactive-custom-dark-l); |
2337 | 2433 | } |
| 2434 | +.theme-dark.color-use-custom.color-modify-bg-dark { |
| 2435 | + --default-mod-bg-hsl: 0, 0%, 7%; |
| 2436 | + --background-primary-hsl: var( |
| 2437 | + --setting-bg-primary-dark-hsl, |
| 2438 | + var(--default-mod-bg-hsl) |
| 2439 | + ); |
| 2440 | + --background-primary-alt-hsl: var( |
| 2441 | + --setting-bg-primary-alt-dark-hsl, |
| 2442 | + var(--default-mod-bg-hsl) |
| 2443 | + ); |
| 2444 | + --background-secondary-hsl: var( |
| 2445 | + --setting-bg-secondary-dark-hsl, |
| 2446 | + var(--default-mod-bg-hsl) |
| 2447 | + ); |
| 2448 | + --frame-bg: var(--setting-bg-frame-dark, hsl(var(--default-mod-bg-hsl))); |
| 2449 | +} |
2338 | 2450 |
|
2339 | 2451 | /* #endregion global variables */ |
2340 | 2452 | /* #region style settings */ |
@@ -2435,31 +2547,42 @@ body.css-settings-manager:not(.color-use-default) .mod-settings .vertical-tab-co |
2435 | 2547 |
|
2436 | 2548 | /* #endregion */ |
2437 | 2549 | /* #region Controls */ |
| 2550 | +.pcr-app { |
| 2551 | + border-radius: var(--radius-m); |
| 2552 | +} |
| 2553 | +.pcr-app .pcr-interaction input { |
| 2554 | + border-radius: var(--radius-s); |
| 2555 | +} |
| 2556 | + |
2438 | 2557 | .style-settings-container .themed-color-wrapper { |
2439 | 2558 | display: flex; |
2440 | 2559 | } |
2441 | 2560 | .style-settings-container .themed-color-wrapper > div { |
| 2561 | + background-color: transparent; |
2442 | 2562 | gap: var(--size-4-2); |
2443 | 2563 | } |
2444 | 2564 | .style-settings-container .themed-color-wrapper > div + div { |
2445 | 2565 | margin-top: 0; |
2446 | 2566 | } |
2447 | | -.style-settings-container .themed-color-wrapper > div .pickr > button { |
| 2567 | +.style-settings-container .pickr > button { |
2448 | 2568 | width: var(--input-height); |
2449 | 2569 | height: var(--input-height); |
2450 | 2570 | border-radius: var(--button-radius); |
| 2571 | + border: 1px solid var(--background-modifier-border); |
2451 | 2572 | } |
2452 | | -.style-settings-container .themed-color-wrapper > div .pickr > button::before, .style-settings-container .themed-color-wrapper > div .pickr > button::after { |
| 2573 | +.style-settings-container .pickr > button::before, .style-settings-container .pickr > button::after { |
2453 | 2574 | border-radius: var(--button-radius); |
2454 | 2575 | } |
2455 | | -.style-settings-container .themed-color-wrapper > div .pickr-reset > button { |
| 2576 | +.style-settings-container .pickr-reset > button { |
2456 | 2577 | cursor: pointer; |
2457 | 2578 | margin: 0; |
2458 | 2579 | width: var(--input-height); |
2459 | 2580 | height: var(--input-height); |
2460 | 2581 | position: relative; |
| 2582 | + background-color: var(--color-base-10); |
| 2583 | + color: var(--color-base-70); |
2461 | 2584 | } |
2462 | | -.style-settings-container .themed-color-wrapper > div .pickr-reset > button svg { |
| 2585 | +.style-settings-container .pickr-reset > button svg { |
2463 | 2586 | position: absolute; |
2464 | 2587 | top: 50%; |
2465 | 2588 | left: 50%; |
@@ -2542,14 +2665,19 @@ body:not(.outline-enable) .setting-item:is([data-id=setting-outline-width], |
2542 | 2665 | [data-id=setting-outline-line-color], |
2543 | 2666 | [data-id=setting-outline-dot-color]), |
2544 | 2667 | body.color-use-default .setting-item:is([data-id=title-light-mode], [data-id=title-dark-mode]), |
2545 | | -body.color-use-minimal .setting-item:is([data-id=setting-accent-h-light], |
2546 | | -[data-id=setting-accent-h-dark], |
2547 | | -[data-id=color-active-light], |
2548 | | -[data-id=color-active-dark]), |
| 2668 | +body.color-use-minimal .setting-item:is([data-id=title-light-mode], [data-id=title-dark-mode]), |
2549 | 2669 | body:not(.color-active-custom-light) .setting-item:is([data-id=setting-color-active-custom-light], |
2550 | 2670 | [data-id=setting-color-inactive-custom-light]), |
| 2671 | +body:not(.color-modify-bg-light) .setting-item:is([data-id=setting-bg-primary-light-hsl], |
| 2672 | +[data-id=setting-bg-primary-alt-light-hsl], |
| 2673 | +[data-id=setting-bg-secondary-light-hsl], |
| 2674 | +[data-id=setting-bg-frame-light]), |
2551 | 2675 | body:not(.color-active-custom-dark) .setting-item:is([data-id=setting-color-active-custom-dark], |
2552 | 2676 | [data-id=setting-color-inactive-custom-dark]), |
| 2677 | +body:not(.color-modify-bg-dark) .setting-item:is([data-id=setting-bg-primary-dark-hsl], |
| 2678 | +[data-id=setting-bg-primary-alt-dark-hsl], |
| 2679 | +[data-id=setting-bg-secondary-dark-hsl], |
| 2680 | +[data-id=setting-bg-frame-dark]), |
2553 | 2681 | body:not(.editor-custom-bottom-spacing) .setting-item[data-id=setting-editor-bottom-spacing], |
2554 | 2682 | body:not(.list-enable) .setting-item:is([data-id*=setting-list-], |
2555 | 2683 | [data-id=list-checkbox], |
@@ -2618,14 +2746,19 @@ body:not(.outline-enable) .setting-item:is([data-id=setting-outline-width], |
2618 | 2746 | [data-id=setting-outline-line-color], |
2619 | 2747 | [data-id=setting-outline-dot-color]) + .style-settings-container, |
2620 | 2748 | body.color-use-default .setting-item:is([data-id=title-light-mode], [data-id=title-dark-mode]) + .style-settings-container, |
2621 | | -body.color-use-minimal .setting-item:is([data-id=setting-accent-h-light], |
2622 | | -[data-id=setting-accent-h-dark], |
2623 | | -[data-id=color-active-light], |
2624 | | -[data-id=color-active-dark]) + .style-settings-container, |
| 2749 | +body.color-use-minimal .setting-item:is([data-id=title-light-mode], [data-id=title-dark-mode]) + .style-settings-container, |
2625 | 2750 | body:not(.color-active-custom-light) .setting-item:is([data-id=setting-color-active-custom-light], |
2626 | 2751 | [data-id=setting-color-inactive-custom-light]) + .style-settings-container, |
| 2752 | +body:not(.color-modify-bg-light) .setting-item:is([data-id=setting-bg-primary-light-hsl], |
| 2753 | +[data-id=setting-bg-primary-alt-light-hsl], |
| 2754 | +[data-id=setting-bg-secondary-light-hsl], |
| 2755 | +[data-id=setting-bg-frame-light]) + .style-settings-container, |
2627 | 2756 | body:not(.color-active-custom-dark) .setting-item:is([data-id=setting-color-active-custom-dark], |
2628 | 2757 | [data-id=setting-color-inactive-custom-dark]) + .style-settings-container, |
| 2758 | +body:not(.color-modify-bg-dark) .setting-item:is([data-id=setting-bg-primary-dark-hsl], |
| 2759 | +[data-id=setting-bg-primary-alt-dark-hsl], |
| 2760 | +[data-id=setting-bg-secondary-dark-hsl], |
| 2761 | +[data-id=setting-bg-frame-dark]) + .style-settings-container, |
2629 | 2762 | body:not(.editor-custom-bottom-spacing) .setting-item[data-id=setting-editor-bottom-spacing] + .style-settings-container, |
2630 | 2763 | body:not(.list-enable) .setting-item:is([data-id*=setting-list-], |
2631 | 2764 | [data-id=list-checkbox], |
@@ -7187,7 +7320,7 @@ body.modal-header:not(.is-mobile) .modal-container .mod-settings { |
7187 | 7320 | container-type: inline-size; |
7188 | 7321 | } |
7189 | 7322 | body.modal-header:not(.is-mobile) .modal-container .mod-settings::before { |
7190 | | - content: var(--setting-modal-header-title, "Maple 1.2.5"); |
| 7323 | + content: var(--setting-modal-header-title, "Maple 1.3.0"); |
7191 | 7324 | position: absolute; |
7192 | 7325 | left: 50%; |
7193 | 7326 | top: calc(var(--modal-header-height) / 2); |
|
0 commit comments