From fca8f4b4cab70e0b3cbd01aed985b2d9e5f96a74 Mon Sep 17 00:00:00 2001 From: Dominik Meurer Date: Wed, 7 Feb 2024 22:36:05 +0100 Subject: [PATCH 1/4] configureable line number color --- theme.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/theme.css b/theme.css index 12da97c..753123f 100644 --- a/theme.css +++ b/theme.css @@ -69,6 +69,8 @@ body { --titlebar-background: var(--color-base-10); --titlebar-background-focused: var(--color-base-25); + + --line-number-color: var(--color-base-50); } .theme-dark { @@ -87,6 +89,8 @@ body { --color-base-100: #ccd2db; --titlebar-background: var(--color-base-25); + + --line-number-color: var(--color-base-50); } /* ─────────────────────────────────────────────────── */ @@ -169,6 +173,11 @@ body.fancy-mermaid .edgeLabel:not(:empty) { padding: 2px; } +/* Line numbers */ +div.cm-gutter.cm-lineNumbers { + color: var(--line-number-color); +} + /* ─────────────────────────────────────────────────── */ /* Code blocks */ @@ -484,6 +493,13 @@ settings: type: variable-color format: hex default: '#656a74' + - + id: line-number-color + title: Line number color + type: variable-color + format: hex + default-light: '#7b89a3' + default-dark: '#7886a1' - id: color-bases title: Color bases From e78ece8db00715902e0de443d62b2b434d029b08 Mon Sep 17 00:00:00 2001 From: Dominik Meurer Date: Wed, 7 Feb 2024 22:51:21 +0100 Subject: [PATCH 2/4] configurable mark current line option --- theme.css | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/theme.css b/theme.css index 753123f..e2578d9 100644 --- a/theme.css +++ b/theme.css @@ -32,6 +32,7 @@ body { --purple: #B97CFF; --divider-color: var(--color-base-30); + --current-line-number-color: var(--yellow); --h1-color: var(--text-normal); --h2-color: var(--text-normal); @@ -178,6 +179,10 @@ div.cm-gutter.cm-lineNumbers { color: var(--line-number-color); } +body.fancy-mark-current-line div.cm-gutter.cm-lineNumbers .cm-active { + color: var(--current-line-number-color); +} + /* ─────────────────────────────────────────────────── */ /* Code blocks */ @@ -331,6 +336,12 @@ settings: id: fancy-mermaid type: class-toggle default: true + - + title: Mark current line + description: Mark the current line in the editor + id: fancy-mark-current-line + type: class-toggle + default: true - id: headings title: Headings @@ -500,6 +511,12 @@ settings: format: hex default-light: '#7b89a3' default-dark: '#7886a1' + - + id: current-line-number-color + title: Current line line number color + type: variable-color + format: hex + default: '#FFD500' - id: color-bases title: Color bases From 158ca846ddfb9f24db377203fb5ce805981360b3 Mon Sep 17 00:00:00 2001 From: Dominik Meurer Date: Wed, 7 Feb 2024 22:51:42 +0100 Subject: [PATCH 3/4] support for calendar plugin --- theme.css | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/theme.css b/theme.css index e2578d9..9be4e46 100644 --- a/theme.css +++ b/theme.css @@ -1,7 +1,6 @@ /* ─────────────────────────────────────────────────── Improved Potato Theme -Version 1.0.0 Created by Dominik Meurer It is heavily inspired by the Things Theme by @colineckert @@ -304,11 +303,28 @@ body.fancy-code .markdown-preview-view pre code { /* Project */ +/* ─────────────────────────────────────────────────── */ div.footer.svelte-1kmm5u0 { background-color: var(--background-primary) } +/* Calendar */ +/* ─────────────────────────────────────────────────── */ + +div.day.has-note.today.svelte-q3wqg9 { + --color-text-today: var(--pink); + font-weight: var(--font-bold); +} + +.theme-dark div.reset-button.svelte-1vwr9dd { + color: hsl(var(--accent-h), var(--accent-s), var(--accent-d)) !important; +} + +.theme-light div.reset-button.svelte-1vwr9dd { + color: hsl(var(--accent-h), var(--accent-s), var(--accent-l)) !important; +} + /* ─────────────────────────────────────────────────── */ /* Styles Settings */ @@ -517,6 +533,12 @@ settings: type: variable-color format: hex default: '#FFD500' + - + id: color-text-today + title: Calendar plugin today color + type: variable-color + format: hex + default: '#ff3c7f' - id: color-bases title: Color bases From 0602e72b41ecef442872cf5406ba80b37c3657cd Mon Sep 17 00:00:00 2001 From: Dominik Meurer Date: Wed, 7 Feb 2024 23:04:30 +0100 Subject: [PATCH 4/4] v1.1.1 --- README.md | 2 ++ manifest.json | 2 +- package.json | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 294636b..1c5c336 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ I'm a huge fan of the "configure everything until its ugly" approach that the Je - Wether its underlined or not - Divider color - Base color (light and dark theme) +- line number color +- configurable line marker (toggle, line number color) # Installation diff --git a/manifest.json b/manifest.json index 2875537..80fd4ca 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Improved Potato", - "version": "1.1.0.1", + "version": "1.1.1", "minAppVersion": "1.5.0", "author": "Dominik Meurer", "authorUrl": "https://dmeurer.github.io/" diff --git a/package.json b/package.json index d235657..514eecd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "improved-potato", - "version": "1.1.0.1", + "version": "1.1.1", "scripts": { "version": "node version-bump.mjs && git add manifest.json versions.json" }