diff --git a/CHANGELOG.md b/CHANGELOG.md index 868953c..e5dfaba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ Releases up to 0.3.5 are described on the [GitHub releases page](https://github. ## [Unreleased] +### Changed +- The interface follows the LowBloat design system like the other LowBloat apps: Inter for text and Cascadia Mono for code, square corners, no decorative shadows, blur or entrance animations, and a green signal bar on the open note. +- New logo: the LowNotes mark from the LowBloat brand set replaces the pixel-art grimoire in the app, installer, tray, title bar and welcome screens. + ## [0.5.0] - 2026-10-29 ### Added diff --git a/README.md b/README.md index 3fdd69d..07f389b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- LowNotes logo: a pixel-art grimoire + LowNotes logo: the LowBloat L with a folded note

LowNotes

@@ -211,7 +211,7 @@ To build the app: bun run tauri build ``` -The app, installer, tray and favicon icons come from `assets/brand/lownotes_logo.png`. Tauri development and production builds regenerate the platform icons automatically. After replacing the logo, run `bun run icons` and commit the updated files in `src-tauri/icons/` and `static/favicon.png`. Cargo also watches the icon directory so incremental Windows builds refresh the embedded executable icon. +The app, installer, tray and favicon icons come from `assets/brand/lownotes.svg`, the LowNotes mark from the LowBloat brand set. Tauri development and production builds regenerate the platform icons automatically. After replacing the logo, run `bun run icons` and commit the updated files in `src-tauri/icons/`, `static/favicon.svg` and `assets/brand/lownotes_logo.png`. Cargo also watches the icon directory so incremental Windows builds refresh the embedded executable icon. To verify changes: diff --git a/assets/brand/lownotes.svg b/assets/brand/lownotes.svg new file mode 100644 index 0000000..304ae65 --- /dev/null +++ b/assets/brand/lownotes.svg @@ -0,0 +1 @@ + diff --git a/assets/brand/lownotes_badge.png b/assets/brand/lownotes_badge.png deleted file mode 100644 index 187ff1e..0000000 Binary files a/assets/brand/lownotes_badge.png and /dev/null differ diff --git a/assets/brand/lownotes_grimoire.png b/assets/brand/lownotes_grimoire.png deleted file mode 100644 index dec3438..0000000 Binary files a/assets/brand/lownotes_grimoire.png and /dev/null differ diff --git a/assets/brand/lownotes_logo.png b/assets/brand/lownotes_logo.png index 48c0af0..e9f38b6 100644 Binary files a/assets/brand/lownotes_logo.png and b/assets/brand/lownotes_logo.png differ diff --git a/assets/brand/lownotes_logo_32x32.png b/assets/brand/lownotes_logo_32x32.png deleted file mode 100644 index 1a5456e..0000000 Binary files a/assets/brand/lownotes_logo_32x32.png and /dev/null differ diff --git a/assets/brand/lownotes_logo_64x64.png b/assets/brand/lownotes_logo_64x64.png deleted file mode 100644 index 6fede73..0000000 Binary files a/assets/brand/lownotes_logo_64x64.png and /dev/null differ diff --git a/bun.lock b/bun.lock index db57256..f2d10dd 100644 --- a/bun.lock +++ b/bun.lock @@ -7,6 +7,7 @@ "dependencies": { "@codemirror/lang-markdown": "^6.5.2", "@excalidraw/excalidraw": "^0.18.1", + "@fontsource-variable/inter": "^5.3.0", "@tauri-apps/api": "^2.12.0", "@tauri-apps/plugin-dialog": "^2.8.0", "@tauri-apps/plugin-opener": "^2.7.0", @@ -113,6 +114,8 @@ "@floating-ui/utils": ["@floating-ui/utils@0.2.12", "", {}, "sha512-HpCo8tmWzLVad5s2d19EhAz5zqrrQ6s69qd6moPMQvkOuSwDT1YgRfWSVuc4ennqrgv3OHppiOGMQ7oC13yIww=="], + "@fontsource-variable/inter": ["@fontsource-variable/inter@5.3.0", "", {}, "sha512-OupL48va4JNofb97w6NYeF9S7W/kHNKM0Er8Dem5nqi4jeOLrVJDoE8tZEpnMJmtkvNbB1EIPPwHcdkF6b1oUA=="], + "@iconify/types": ["@iconify/types@2.0.0", "", {}, "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg=="], "@iconify/utils": ["@iconify/utils@3.1.7", "", { "dependencies": { "@antfu/install-pkg": "^2.0.1", "@iconify/types": "^2.0.0", "import-meta-resolve": "^4.2.0" } }, "sha512-JZHlwdID+dy+lTgbYC8NEC4zeugqeYsc6jewvzb4c58kHauJn+X7rNwQjxz5p2qSjqaEeQoLkCIQ9v/H4PK0/w=="], diff --git a/package.json b/package.json index b67fa03..7f53b49 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "dependencies": { "@codemirror/lang-markdown": "^6.5.2", "@excalidraw/excalidraw": "^0.18.1", + "@fontsource-variable/inter": "^5.3.0", "@tauri-apps/api": "^2.12.0", "@tauri-apps/plugin-dialog": "^2.8.0", "@tauri-apps/plugin-opener": "^2.7.0", diff --git a/scripts/generate-icons.mjs b/scripts/generate-icons.mjs index 905df32..a101630 100644 --- a/scripts/generate-icons.mjs +++ b/scripts/generate-icons.mjs @@ -1,5 +1,5 @@ import { spawnSync } from 'node:child_process'; -import { existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; +import { copyFileSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'; import { createRequire } from 'node:module'; import { tmpdir } from 'node:os'; import { join } from 'node:path'; @@ -8,7 +8,7 @@ import { fileURLToPath } from 'node:url'; const root = fileURLToPath(new URL('../', import.meta.url)); const require = createRequire(import.meta.url); const cli = require.resolve('@tauri-apps/cli/tauri.js'); -const source = join(root, 'assets/brand/lownotes_logo.png'); +const source = join(root, 'assets/brand/lownotes.svg'); const output = mkdtempSync(join(tmpdir(), 'lownotes-icons-')); function generate() { @@ -45,8 +45,9 @@ try { for (const name of ['32x32.png', '64x64.png', '128x128.png', '128x128@2x.png', 'icon.ico', 'icon.icns']) { update(name, `src-tauri/icons/${name}`); } - update('64x64.png', 'static/favicon.png'); - console.log('App, installer, tray and favicon icons generated from assets/brand/lownotes_logo.png.'); + update('icon.png', 'assets/brand/lownotes_logo.png'); + copyFileSync(source, join(root, 'static/favicon.svg')); + console.log('App, installer, tray and favicon icons generated from assets/brand/lownotes.svg.'); } finally { rmSync(output, { recursive: true, force: true }); } diff --git a/src-tauri/icons/128x128.png b/src-tauri/icons/128x128.png index 2c71d49..f716a40 100644 Binary files a/src-tauri/icons/128x128.png and b/src-tauri/icons/128x128.png differ diff --git a/src-tauri/icons/128x128@2x.png b/src-tauri/icons/128x128@2x.png index bf9932e..60c1256 100644 Binary files a/src-tauri/icons/128x128@2x.png and b/src-tauri/icons/128x128@2x.png differ diff --git a/src-tauri/icons/32x32.png b/src-tauri/icons/32x32.png index 4164fbb..aa800d8 100644 Binary files a/src-tauri/icons/32x32.png and b/src-tauri/icons/32x32.png differ diff --git a/src-tauri/icons/64x64.png b/src-tauri/icons/64x64.png index e4e78b8..d7ff7aa 100644 Binary files a/src-tauri/icons/64x64.png and b/src-tauri/icons/64x64.png differ diff --git a/src-tauri/icons/icon.icns b/src-tauri/icons/icon.icns index db22559..527bb48 100644 Binary files a/src-tauri/icons/icon.icns and b/src-tauri/icons/icon.icns differ diff --git a/src-tauri/icons/icon.ico b/src-tauri/icons/icon.ico index bf45308..ba3e577 100644 Binary files a/src-tauri/icons/icon.ico and b/src-tauri/icons/icon.ico differ diff --git a/src/app.css b/src/app.css index 39cc2b4..56af413 100644 --- a/src/app.css +++ b/src/app.css @@ -1,4 +1,29 @@ @import "tailwindcss"; +@import "@fontsource-variable/inter"; + +/* LowBloat identity: zero radius, no decorative shadows, Inter for text and + * Cascadia Mono/Consolas for code and metadata. Circles (rounded-full) stay. */ +@theme { + --font-sans: "Inter Variable", "Inter", system-ui, sans-serif; + --font-mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SFMono-Regular", Menlo, monospace; + --radius: 0; + --radius-xs: 0; + --radius-sm: 0; + --radius-md: 0; + --radius-lg: 0; + --radius-xl: 0; + --radius-2xl: 0; + --radius-3xl: 0; + --radius-4xl: 0; + --shadow: none; + --shadow-2xs: none; + --shadow-xs: none; + --shadow-sm: none; + --shadow-md: none; + --shadow-lg: none; + --shadow-xl: none; + --shadow-2xl: none; +} :root { color-scheme: light; @@ -53,7 +78,9 @@ body { background-color: var(--bg-main); color: var(--text-main); - font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif; + font-family: var(--font-sans); + font-feature-settings: "cv11", "ss01"; + -webkit-font-smoothing: antialiased; margin: 0; padding: 0; user-select: none; @@ -69,7 +96,7 @@ button:disabled { cursor: not-allowed; opacity: .55; } .app-topbar { height: var(--app-toolbar-height); min-height: var(--app-toolbar-height); } /* Shared note finder highlights in source and rendered text. */ -.cm-editor .note-search-match, .prose mark.note-search-match { background: var(--accent-glow); color: inherit; border-radius: 2px; } +.cm-editor .note-search-match, .prose mark.note-search-match { background: var(--accent-glow); color: inherit; border-radius: 0; } .cm-editor .note-search-current, .prose mark.note-search-current { background: var(--selection); outline: 1px solid var(--accent-light); outline-offset: 1px; } /* One workbench for application and assistant preferences. */ @@ -80,58 +107,58 @@ button:disabled { cursor: not-allowed; opacity: .55; } .settings-version { color: var(--text-dim); font-size: 12px; } .settings-shell { max-width: 1120px; margin: 0 auto; padding: 42px 34px 70px; } .settings-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 34px; } -.settings-emblem { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; color: var(--accent-contrast); background: var(--accent); box-shadow: 5px 5px 0 var(--border); } +.settings-emblem { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 0; color: var(--accent-contrast); background: var(--accent); } .settings-heading h1 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 740; letter-spacing: -.04em; } .settings-heading p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; } .settings-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 28px; } .settings-nav { display: flex; flex-direction: column; gap: 5px; align-self: start; } -.settings-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; text-align: left; border-radius: 9px; color: var(--text-muted); font-size: 13px; font-weight: 600; } +.settings-nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 13px; text-align: left; border-radius: 0; color: var(--text-muted); font-size: 13px; font-weight: 600; } .settings-nav button:hover { color: var(--text-main); background: var(--bg-hover); } .settings-nav button.active { color: var(--accent-light); background: var(--bg-active); box-shadow: inset 3px 0 0 var(--accent); } .settings-content { min-width: 0; } -.settings-section { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); padding: 25px 28px; margin-bottom: 18px; } -.settings-section h2 { margin: 0; font-size: 19px; letter-spacing: -.025em; } +.settings-section { border: 1px solid var(--border); border-radius: 0; background: var(--bg-card); padding: 25px 28px; margin-bottom: 18px; } +.settings-section h2 { margin: 0; font-size: 19px; font-weight: 680; letter-spacing: -.025em; } .settings-section > p, .settings-section-title p { margin: 6px 0 20px; color: var(--text-muted); font-size: 13px; line-height: 1.5; } .settings-section-title { display: flex; justify-content: space-between; align-items: start; gap: 20px; } .setting-row { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); } .setting-row strong { display: block; font-size: 13px; font-weight: 650; } .setting-row small, .setting-field small { display: block; margin-top: 5px; color: var(--text-dim); font-size: 12px; line-height: 1.45; } -.setting-row select, .setting-field input, .settings-add-form input, .settings-models select { min-width: 170px; max-width: 100%; height: 36px; padding: 0 10px; color: var(--text-main); background: var(--bg-main); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; } +.setting-row select, .setting-field input, .settings-add-form input, .settings-models select { min-width: 170px; max-width: 100%; height: 36px; padding: 0 10px; color: var(--text-main); background: var(--bg-main); border: 1px solid var(--border); border-radius: 0; font-size: 12px; } .setting-toggle { cursor: pointer; } .setting-toggle input, .settings-active-choice input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; } -.settings-segment { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-main); } -.settings-segment button { padding: 7px 12px; color: var(--text-muted); border-radius: 6px; font-size: 12px; } +.settings-segment { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-main); } +.settings-segment button { padding: 7px 12px; color: var(--text-muted); border-radius: 0; font-size: 12px; } .settings-segment button.active { color: var(--accent-contrast); background: var(--accent); font-weight: 700; } .setting-field { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; font-size: 12px; font-weight: 650; } .setting-field input { width: 100%; max-width: none; } .settings-link { align-self: start; color: var(--accent-light); font-size: 12px; font-weight: 600; } .settings-actions { display: flex; justify-content: end; align-items: center; gap: 12px; padding-top: 14px; } .settings-actions > button:not(.settings-primary) { color: var(--text-muted); font-size: 12px; } -.settings-primary { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-contrast); font-size: 12px; font-weight: 750; } +.settings-primary { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 8px 14px; border-radius: 0; background: var(--accent); color: var(--accent-contrast); font-size: 12px; font-weight: 750; } .settings-primary:hover { background: var(--accent-hover); } -.settings-add-form { padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-main); margin-bottom: 16px; } +.settings-add-form { padding: 16px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-main); margin-bottom: 16px; } .settings-add-form label { display: block; margin-bottom: 12px; color: var(--text-muted); font-size: 12px; } .settings-add-form input { display: block; width: 100%; max-width: none; margin-top: 6px; } -.provider-workspace { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 11px; overflow: hidden; } +.provider-workspace { display: grid; grid-template-columns: minmax(130px, 190px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: 0; overflow: hidden; } .provider-list { display: flex; flex-direction: column; gap: 2px; padding: 8px; border-right: 1px solid var(--border); background: var(--bg-main); } -.provider-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px; color: var(--text-muted); text-align: left; border-radius: 7px; font-size: 12px; } +.provider-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px; color: var(--text-muted); text-align: left; border-radius: 0; font-size: 12px; } .provider-list button.active { background: var(--bg-active); color: var(--text-main); font-weight: 700; } .provider-list button:hover { background: var(--bg-hover); } .provider-detail { min-width: 0; padding: 20px; } .provider-detail-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--border); } .provider-detail h3 { margin: 0; font-size: 16px; }.provider-detail-head small { color: var(--text-dim); font-size: 11px; } -.settings-icon { padding: 6px; border-radius: 7px; }.settings-icon:hover { background: var(--bg-hover); }.settings-icon.danger { color: var(--danger); } -.settings-inline, .settings-models { display: flex; gap: 8px; }.settings-inline input { flex: 1; min-width: 0; }.settings-inline button, .settings-models button { padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--accent-light); font-size: 12px; } +.settings-icon { padding: 6px; border-radius: 0; }.settings-icon:hover { background: var(--bg-hover); }.settings-icon.danger { color: var(--danger); } +.settings-inline, .settings-models { display: flex; gap: 8px; }.settings-inline input { flex: 1; min-width: 0; }.settings-inline button, .settings-models button { padding: 0 10px; border: 1px solid var(--border); border-radius: 0; color: var(--accent-light); font-size: 12px; } .settings-models select { flex: 1; min-width: 0; } .settings-active-choice { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 12px; color: var(--text-muted); cursor: pointer; } -.web-route-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 10px; background: var(--bg-active); color: var(--text-muted); font-size: 12px; line-height: 1.55; } +.web-route-note { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border: 1px solid var(--accent); border-radius: 0; background: var(--bg-active); color: var(--text-muted); font-size: 12px; line-height: 1.55; } .web-route-note svg { flex: none; color: var(--accent-light); margin-top: 1px; } -.mcp-snippet { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-main); } +.mcp-snippet { margin-top: 12px; border: 1px solid var(--border); border-radius: 0; overflow: hidden; background: var(--bg-main); } .mcp-snippet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--bg-card); font-size: 12px; } .mcp-snippet-head button { display: inline-flex; align-items: center; gap: 6px; } -.mcp-snippet pre { margin: 0; padding: 12px; overflow-x: auto; color: var(--text-main); font-size: 12px; line-height: 1.5; font-family: ui-monospace, SFMono-Regular, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace; user-select: text; } +.mcp-snippet pre { margin: 0; padding: 12px; overflow-x: auto; color: var(--text-main); font-size: 12px; line-height: 1.5; font-family: var(--font-mono); user-select: text; } .web-source-list { display: grid; gap: 10px; margin-top: 18px; } -.web-source-row { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-main); } +.web-source-row { padding: 14px 16px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-main); } .web-source-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; } .web-source-head input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); } .web-source-title strong, .web-source-title small { display: block; } @@ -139,29 +166,29 @@ button:disabled { cursor: not-allowed; opacity: .55; } .web-source-title small { margin-top: 3px; font-size: 11px; color: var(--text-dim); } .web-source-row .setting-field { margin: 12px 0 5px; } .web-source-row .settings-link { margin-top: 6px; } -.settings-about { display: flex; align-items: center; gap: 16px; padding: 20px; margin: 18px 0; background: var(--bg-main); border: 1px solid var(--border); border-radius: 11px; } -.settings-about-mark { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 11px; background: var(--accent); color: var(--accent-contrast); font-size: 26px; } +.settings-about { display: flex; align-items: center; gap: 16px; padding: 20px; margin: 18px 0; background: var(--bg-main); border: 1px solid var(--border); border-radius: 0; } +.settings-about-mark { width: 45px; height: 45px; flex: none; } .settings-about strong, .settings-about span { display: block; }.settings-about span { color: var(--text-muted); font-size: 12px; margin-top: 3px; } .settings-error, .settings-saved { display: flex; align-items: center; gap: 7px; margin: 12px 0; font-size: 12px; }.settings-error { color: var(--danger); }.settings-saved { color: var(--success); } /* Theme palettes: card grid, editor with per-token color pickers, live demo. */ .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; margin-top: 4px; } -.palette-card { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-main); } -.palette-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 16px var(--accent-glow); } +.palette-card { position: relative; border: 1px solid var(--border); border-radius: 0; background: var(--bg-main); } +.palette-card.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); } .palette-select { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 13px; text-align: left; } .palette-select:hover .palette-name { color: var(--accent-light); } -.palette-swatches { display: flex; height: 34px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; } +.palette-swatches { display: flex; height: 34px; border: 1px solid var(--border); border-radius: 0; overflow: hidden; } .palette-swatches span { flex: 1; } .palette-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .palette-name { display: block; font-size: 12px; font-weight: 700; color: var(--text-main); overflow-wrap: anywhere; } .palette-sub { display: block; margin-top: 2px; font-size: 10px; color: var(--text-dim); } -.palette-badge { flex: none; padding: 3px 7px; border-radius: 999px; background: var(--bg-active); color: var(--text-main); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; } +.palette-badge { flex: none; padding: 3px 7px; border-radius: 0; background: var(--bg-active); color: var(--text-main); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; } .palette-badge.accent { background: var(--accent); color: var(--accent-contrast); } .palette-tools { position: absolute; top: 7px; right: 7px; display: flex; gap: 3px; } -.palette-tools button { padding: 5px; border-radius: 6px; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); } +.palette-tools button { padding: 5px; border-radius: 0; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border); } .palette-tools button:hover { color: var(--accent-light); background: var(--bg-hover); } .palette-tools button.danger:hover { color: var(--danger); } -.palette-editor { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-main); } +.palette-editor { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-main); } .palette-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; } .palette-editor-head h3 { margin: 0; font-size: 16px; } .palette-editor-head small { display: block; margin-top: 4px; color: var(--text-dim); font-size: 11px; } @@ -170,31 +197,31 @@ button:disabled { cursor: not-allowed; opacity: .55; } .palette-group { margin-bottom: 16px; } .palette-group h4 { margin: 0 0 9px; font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); } .palette-picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px; } -.palette-picker { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-card); } -.palette-picker input[type="color"] { width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 7px; background: none; cursor: pointer; } +.palette-picker { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-card); } +.palette-picker input[type="color"] { width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--border); border-radius: 0; background: none; cursor: pointer; } .palette-picker input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; } -.palette-picker input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; } +.palette-picker input[type="color"]::-webkit-color-swatch { border: none; border-radius: 0; } .palette-picker-label { min-width: 0; flex: 1; } .palette-picker-label strong { display: block; font-size: 11px; font-weight: 650; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } -.palette-picker-label input { display: block; width: 100%; height: auto; margin-top: 3px; padding: 2px 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--text-dim); font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } +.palette-picker-label input { display: block; width: 100%; height: auto; margin-top: 3px; padding: 2px 5px; border: 1px solid transparent; border-radius: 0; background: transparent; color: var(--text-dim); font-size: 10px; font-family: var(--font-mono); } .palette-picker-label input:hover, .palette-picker-label input:focus { border-color: var(--border); background: var(--bg-main); color: var(--text-main); } -.palette-demo { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; } +.palette-demo { border: 1px solid var(--border); border-radius: 0; overflow: hidden; } .palette-demo-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; background: var(--bg-sidebar); border-bottom: 1px solid var(--border); font-size: 10px; font-weight: 750; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; } .palette-demo-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--bg-main); } .palette-demo-side { display: flex; flex-direction: column; gap: 5px; padding: 11px 9px; background: var(--bg-sidebar); border-right: 1px solid var(--border); } -.palette-demo-item { padding: 6px 8px; border-radius: 6px; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.palette-demo-item { padding: 6px 8px; border-radius: 0; font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .palette-demo-item.active { background: var(--bg-active); color: var(--text-main); font-weight: 700; } .palette-demo-main { padding: 13px; min-width: 0; } -.palette-demo-note { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); } +.palette-demo-note { padding: 12px; border: 1px solid var(--border); border-radius: 0; background: var(--bg-card); } .palette-demo-note h5 { margin: 0 0 6px; font-size: 13px; color: var(--text-main); } .palette-demo-note p { margin: 0 0 4px; font-size: 11px; line-height: 1.5; color: var(--text-muted); } .palette-demo-link { color: var(--accent-light); font-size: 11px; font-weight: 600; text-decoration: underline; cursor: default; } .palette-demo-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; } -.palette-demo-btn { padding: 6px 11px; border-radius: 7px; background: var(--accent); color: var(--accent-contrast); font-size: 10px; font-weight: 750; } -.palette-demo-chip { padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 700; color: var(--bg-main); } +.palette-demo-btn { padding: 6px 11px; border-radius: 0; background: var(--accent); color: var(--accent-contrast); font-size: 10px; font-weight: 750; } +.palette-demo-chip { padding: 5px 9px; border-radius: 0; font-size: 9px; font-weight: 700; color: var(--bg-main); } .palette-demo-chip.ok { background: var(--success); } .palette-demo-chip.bad { background: var(--danger); } -.palette-demo-swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--accent-light); } +.palette-demo-swatch { width: 22px; height: 22px; border-radius: 0; border: 1px solid var(--border); background: var(--accent-light); } @media (max-width: 980px) { .palette-editor-body { grid-template-columns: 1fr; } } @media (max-width: 850px) { .settings-layout { grid-template-columns: 1fr; gap: 17px; }.settings-nav { flex-direction: row; overflow-x: auto; }.settings-nav button { width: auto; white-space: nowrap; }.settings-shell { padding: 28px 20px 50px; } } @media (max-width: 620px) { .settings-topbar { padding: 0 17px; }.settings-section { padding: 20px; }.setting-row { align-items: start; flex-direction: column; gap: 12px; }.setting-row select { width: 100%; }.setting-toggle { flex-direction: row; align-items: center; }.provider-workspace { grid-template-columns: 1fr; }.provider-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }.provider-list button { width: auto; white-space: nowrap; }.settings-section-title { flex-direction: column; }.settings-heading { align-items: start; } } @@ -212,7 +239,7 @@ button:disabled { cursor: not-allowed; opacity: .55; } ::-webkit-scrollbar-thumb { background: var(--border); - border-radius: 3px; + border-radius: 0; } ::-webkit-scrollbar-thumb:hover { @@ -222,7 +249,7 @@ button:disabled { cursor: not-allowed; opacity: .55; } /* CodeMirror overrides */ .cm-editor { height: 100%; - font-family: ui-monospace, SFMono-Regular, "Cascadia Code", "Roboto Mono", Menlo, Consolas, monospace; + font-family: var(--font-mono); font-size: 15px; background-color: transparent !important; color: var(--text-main) !important; @@ -278,7 +305,7 @@ button:disabled { cursor: not-allowed; opacity: .55; } /* Placeholder for a remote image that was not loaded (privacy default). */ .prose .remote-image-blocked { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; - padding: 0.35rem 0.6rem; margin: 0.15rem 0; border: 1px dashed var(--border); border-radius: 6px; + padding: 0.35rem 0.6rem; margin: 0.15rem 0; border: 1px dashed var(--border); border-radius: 0; background: var(--bg-card); color: var(--text-muted); font-size: 0.8em; cursor: pointer; text-align: left; overflow-wrap: anywhere; } diff --git a/src/app.html b/src/app.html index c6ac43b..9f8114e 100644 --- a/src/app.html +++ b/src/app.html @@ -2,7 +2,7 @@ - + LowNotes %sveltekit.head% diff --git a/src/lib/components/AiChatSidebar.svelte b/src/lib/components/AiChatSidebar.svelte index fcfb6c1..d879ad1 100644 --- a/src/lib/components/AiChatSidebar.svelte +++ b/src/lib/components/AiChatSidebar.svelte @@ -413,14 +413,14 @@
+
{:else} @@ -596,7 +596,7 @@ class="inline-flex items-center gap-1 text-[11px] text-[var(--accent-light)] hover:underline"> {$t('ai.openSavedNote')} {:else} {/if} @@ -633,7 +633,7 @@ {$t('ai.editApplied')} {:else} {/if} @@ -719,7 +719,7 @@ diff --git a/src/lib/components/Editor.svelte b/src/lib/components/Editor.svelte index 3c1138c..cb46efb 100644 --- a/src/lib/components/Editor.svelte +++ b/src/lib/components/Editor.svelte @@ -1201,7 +1201,8 @@ } :global(.prose h1) { font-size: 1.85rem; - font-weight: 700; + font-weight: 720; + letter-spacing: -0.03em; margin-top: 1.5rem; margin-bottom: 0.8rem; color: var(--text-main); @@ -1210,14 +1211,16 @@ } :global(.prose h2) { font-size: 1.4rem; - font-weight: 600; + font-weight: 680; + letter-spacing: -0.02em; margin-top: 1.3rem; margin-bottom: 0.6rem; color: var(--text-main); } :global(.prose h3) { font-size: 1.15rem; - font-weight: 600; + font-weight: 650; + letter-spacing: -0.015em; margin-top: 1rem; margin-bottom: 0.4rem; color: var(--text-main); @@ -1229,14 +1232,14 @@ :global(.prose code) { background-color: var(--bg-card); padding: 2px 6px; - border-radius: 4px; + border-radius: 0; font-size: 13px; border: 1px solid var(--border); } :global(.prose pre) { background-color: var(--bg-card); padding: 12px 16px; - border-radius: 6px; + border-radius: 0; border: 1px solid var(--border); overflow-x: auto; } @@ -1319,13 +1322,13 @@ :global(.prose mark) { background: var(--accent-glow); color: var(--text-main); - border-radius: 2px; + border-radius: 0; } :global(.prose .warning), :global(.prose .info), :global(.prose .tip), :global(.prose .danger) { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent); - border-radius: 6px; + border-radius: 0; padding: 0.6rem 1rem; margin: 1rem 0; } @@ -1340,7 +1343,7 @@ padding: 1rem; background: var(--bg-card); border: 1px solid var(--border); - border-radius: 10px; + border-radius: 0; overflow-x: auto; text-align: center; } @@ -1354,7 +1357,7 @@ padding: 0.75rem; background: var(--bg-card); border: 1px solid var(--border); - border-radius: 10px; + border-radius: 0; overflow-x: auto; cursor: pointer; } @@ -1382,7 +1385,7 @@ right: 0.5rem; padding: 2px 8px; font-size: 12px; - border-radius: 6px; + border-radius: 0; border: 1px solid var(--border); background: var(--bg-sidebar); color: var(--text-muted); diff --git a/src/lib/components/GraphView.svelte b/src/lib/components/GraphView.svelte index d5d8220..769505c 100644 --- a/src/lib/components/GraphView.svelte +++ b/src/lib/components/GraphView.svelte @@ -399,7 +399,7 @@ diff --git a/src/lib/components/NoteFindPanel.svelte b/src/lib/components/NoteFindPanel.svelte index ba8ccbf..b807da7 100644 --- a/src/lib/components/NoteFindPanel.svelte +++ b/src/lib/components/NoteFindPanel.svelte @@ -55,15 +55,15 @@ diff --git a/src/lib/components/SettingsView.svelte b/src/lib/components/SettingsView.svelte index da6f9d7..c4c1066 100644 --- a/src/lib/components/SettingsView.svelte +++ b/src/lib/components/SettingsView.svelte @@ -513,7 +513,7 @@ {:else}

{$t('settings.about')}

{$t('settings.aboutHint')}

-
LowNotes{$t('settings.version')} {version}
+
LowNotes{$t('settings.version')} {version}
{$t('settings.device')}{settings.device_name}
{$t('settings.logs')}{$t('settings.logsHint')}
diff --git a/src/lib/components/Sidebar.svelte b/src/lib/components/Sidebar.svelte index 112f376..3936534 100644 --- a/src/lib/components/Sidebar.svelte +++ b/src/lib/components/Sidebar.svelte @@ -274,7 +274,7 @@ {#if isVaultDropdownOpen} -
+
{$t('sidebar.yourVaults')}
@@ -386,7 +386,7 @@ @@ -417,7 +417,7 @@ @@ -437,7 +437,7 @@
itemMenu(e, item)} - class="group w-full flex items-center justify-between pr-2.5 rounded-md text-xs text-left transition {selectedPath === item.path ? 'bg-[var(--bg-active)] text-[var(--accent-light)] font-medium' : 'text-[var(--text-muted)] hover:bg-[var(--bg-hover)] hover:text-[var(--text-main)]'}" + class="group w-full flex items-center justify-between pr-2.5 rounded-md text-xs text-left transition {selectedPath === item.path ? 'bg-[var(--bg-active)] text-[var(--text-main)] font-semibold shadow-[inset_2px_0_0_var(--accent)]' : 'text-[var(--text-muted)] hover:bg-[var(--bg-hover)] hover:text-[var(--text-main)]'}" > {:else if update.download_url} @@ -230,13 +230,6 @@ {/if} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 1c8b3da..1b4d46a 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,5 +1,5 @@