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.
33 lines
987 B
Rust
33 lines
987 B
Rust
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;
|
|
|
|
pub use advanced::{DeveloperModeToggle, FeatureFlags, Flag, Stage};
|
|
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,
|
|
};
|
|
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};
|