Theme · Importing: VS Code themes read into Ely's palette, code palettes to choose

settings::read_vscode_theme reads a VS Code color theme, comments and
trailing commas and all: its type picks the mode, its colors and token
scopes name what they give, and the rest keep Ely's palette of that mode.
settings::ThemeImporter takes one dropped or browsed for, shows its name,
mode and count, and hands it over on Apply; a file that does not read
says why. theme::syntax_themes offers Ely's code colors, Quiet and Paper,
chosen through settings::SyntaxThemePicker, radio cards with a line of
code in each palette. A card's words now shrink as a plain block, so a
preview wraps inside the card at 280px.
This commit is contained in:
ZacharyZhang-NY committed 2026-09-27 17:11:55 -04:00
1 parent d2a5c0d955
commit 5f61f3e08d
13 files changed
+895 -9

No files matched your search

+6
View File
@@ -1,12 +1,15 @@
mod advanced;
mod appearance;
mod editor;
mod importer;
mod network;
mod preferences;
mod search;
mod section;
mod shortcuts;
mod storage;
mod syntax;
mod vscode;
#[cfg(all(test, feature = "test-support"))]
mod tests;
@@ -16,6 +19,7 @@ pub use appearance::{
AccentColorPicker, Appearance, DensitySelector, FontSizeControl, ThemeSelector,
};
pub use editor::{ThemeDraft, ThemeEditor};
pub use importer::ThemeImporter;
pub use network::{Proxy, ProxySettings, manual};
pub use preferences::{
Notices, NotificationSettings, Privacy, PrivacySettings, Startup, StartupSettings,
@@ -24,3 +28,5 @@ pub use search::{SettingEntry, SettingsSearch, matching};
pub use section::{SettingsLayout, SettingsRow, SettingsSection};
pub use shortcuts::{KeyboardShortcutsList, Shortcut};
pub use storage::{Changed, ImportExportSettings, ResetToDefault, StorageSettings, Store};
pub use syntax::SyntaxThemePicker;
pub use vscode::{VsCodeTheme, read_vscode_theme};