Commit c8881c8181

c8881c8181c713d75baab793281ad025393a1785

parent: 5bfbcfd2c6

Unregistered key

Ulyssa <git@ulyssa.dev> · 2026-10-09 03:12 UTC
committer: <noreply@github.com>

Add a `:theme` command and `theme` config option (#796)

Layout: unified · split

PACKAGING.md +1
@@ -34,6 +34,7 @@ you'll want to install as part of a package:
3434| /iamb.desktop | /usr/share/applications/iamb.desktop |
3535| /config.example.toml | /usr/share/iamb/config.example.toml |
3636| /config.full.toml | /usr/share/iamb/config.full.toml |
37| /themes/ | /usr/share/iamb/themes/ |
3738| /docs/iamb-256x256.png | /usr/share/icons/hicolor/256x256/apps/iamb.png |
3839| /docs/iamb-512x512.png | /usr/share/icons/hicolor/512x512/apps/iamb.png |
3940| /docs/iamb.svg | /usr/share/icons/hicolor/scalable/apps/iamb.svg |
docs/iamb.1 +2
@@ -75,6 +75,8 @@ Mark all rooms as read.
7575View a list of rooms with mentions of the current user.
7676.It Sy ":invites"
7777View a list of rooms you are invited to.
78.It Sy ":theme [name]"
79Change the current theme.
7880.It Sy ":welcome"
7981View the startup Welcome window.
8082.It Sy ":forget"
docs/iamb.5 +4
@@ -322,6 +322,10 @@ Defines whether the state events like joined or left are shown.
322322.It Sy sync_delay_ms
323323How long to wait after a sync completes before doing the next one.
324324Defaults to 250 milliseconds.
325.It Sy theme
326Configure which theme to use at startup.
327Defaults to
328.Dq Sy "default" .
325329.It Sy terminal
326330Subsection for configuring how specific terminal features are used (or not used).
327331See
src/base.rs +7
@@ -745,6 +745,9 @@ pub enum IambAction {
745745 /// Toggle the focus within the focused room.
746746 ToggleScrollbackFocus,
747747
748 /// Change the current theme.
749 ChangeTheme(String),
750
748751 /// Clear all unread messages.
749752 ClearUnreads,
750753}
@@ -801,6 +804,7 @@ impl From<TimelineAction> for IambAction {
801804impl ApplicationAction for IambAction {
802805 fn is_edit_sequence(&self, _: &EditContext) -> SequenceStatus {
803806 match self {
807 IambAction::ChangeTheme(..) => SequenceStatus::Break,
804808 IambAction::ClearUnreads => SequenceStatus::Break,
805809 IambAction::Homeserver(..) => SequenceStatus::Break,
806810 IambAction::Keys(..) => SequenceStatus::Break,
@@ -820,6 +824,7 @@ impl ApplicationAction for IambAction {
820824
821825 fn is_last_action(&self, _: &EditContext) -> SequenceStatus {
822826 match self {
827 IambAction::ChangeTheme(..) => SequenceStatus::Atom,
823828 IambAction::ClearUnreads => SequenceStatus::Atom,
824829 IambAction::Homeserver(..) => SequenceStatus::Atom,
825830 IambAction::Keys(..) => SequenceStatus::Atom,
@@ -839,6 +844,7 @@ impl ApplicationAction for IambAction {
839844
840845 fn is_last_selection(&self, _: &EditContext) -> SequenceStatus {
841846 match self {
847 IambAction::ChangeTheme(..) => SequenceStatus::Ignore,
842848 IambAction::ClearUnreads => SequenceStatus::Ignore,
843849 IambAction::Homeserver(..) => SequenceStatus::Ignore,
844850 IambAction::Keys(..) => SequenceStatus::Ignore,
@@ -858,6 +864,7 @@ impl ApplicationAction for IambAction {
858864
859865 fn is_switchable(&self, _: &EditContext) -> bool {
860866 match self {
867 IambAction::ChangeTheme(..) => false,
861868 IambAction::ClearUnreads => false,
862869 IambAction::Homeserver(..) => false,
863870 IambAction::Message(..) => false,
src/commands.rs +21
@@ -654,6 +654,22 @@ fn iamb_spaces(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult {
654654 }
655655}
656656
657fn iamb_theme(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult {
658 let mut args = desc.arg.strings()?;
659
660 if args.len() > 1 {
661 return Result::Err(CommandError::InvalidArgument);
662 }
663
664 if let Some(theme) = args.pop() {
665 let theme = IambAction::ChangeTheme(theme);
666 let step = CommandStep::Continue(theme.into(), ctx.context.clone());
667 return Ok(step);
668 } else {
669 return Result::Err(CommandError::InvalidArgument);
670 }
671}
672
657673fn iamb_welcome(desc: CommandDescription, ctx: &mut ProgContext) -> ProgResult {
658674 if !desc.arg.text.is_empty() {
659675 return Result::Err(CommandError::InvalidArgument);
@@ -1256,6 +1272,11 @@ pub fn add_iamb_commands(cmds: &mut ProgramCommands) {
12561272 f: iamb_invites,
12571273 });
12581274 cmds.add_command(ProgramCommand { name: "self".into(), aliases: vec![], f: iamb_self });
1275 cmds.add_command(ProgramCommand {
1276 name: "theme".into(),
1277 aliases: vec![],
1278 f: iamb_theme,
1279 });
12591280 cmds.add_command(ProgramCommand {
12601281 name: "unreact".into(),
12611282 aliases: vec![],
src/completions.rs +11
@@ -542,6 +542,15 @@ fn complete_iamb_space(args: Vec<String>, store: &ChatStore) -> Vec<String> {
542542 }
543543}
544544
545/// Tab completion for `:theme`
546fn complete_iamb_theme(args: Vec<String>, store: &ChatStore) -> Vec<String> {
547 if args.len() == 1 {
548 store.settings.themes.complete(&args[0])
549 } else {
550 vec![]
551 }
552}
553
545554/// Tab completion for `:spaces`
546555fn complete_iamb_spaces(args: Vec<String>) -> Vec<String> {
547556 match args.len() {
@@ -621,6 +630,8 @@ fn complete_cmdarg(
621630
622631 "spaces" => complete_iamb_spaces(args),
623632
633 "theme" => complete_iamb_theme(args, store),
634
624635 // XXX: Check whether we can get the id of the focused message to improve completion
625636 "unreact" if args.len() == 1 => complete_emoji(&args[0], store),
626637 "unreact" => vec![],
src/config/mod.rs +41 −3
@@ -6,6 +6,7 @@ use std::io::{BufReader, BufWriter, Write as _};
66use std::process;
77use std::sync::Arc;
88
9use anyhow::anyhow;
910use clap::Parser;
1011use indexmap::IndexMap;
1112use lazy_static::lazy_static;
@@ -16,6 +17,7 @@ use matrix_sdk::reqwest::header::{HeaderMap, HeaderValue};
1617use matrix_sdk::ruma::{DeviceId, OwnedDeviceId, owned_server_name};
1718use matrix_sdk::{AuthSession, EncryptionState, SessionMeta, SessionTokens};
1819use modalkit::crossterm;
20use modalkit::editing::completion::CompletionMap;
1921use modalkit::env::vim::VimMode;
2022use modalkit::keybindings::InputKey;
2123use ratatui_image::FilterType;
@@ -168,6 +170,25 @@ where
168170 Ok(Some(r))
169171}
170172
173/// Load themes from disk, and merge in the configured overrides.
174fn load_themes(
175 themes_dir: &Path,
176 theme_overrides: theme::Theme,
177) -> anyhow::Result<CompletionMap<String, theme::Theme>> {
178 let mut themes = CompletionMap::default();
179
180 // Load from the `themes` directory in the user's configuration directory:
181 theme::find_themes(themes_dir)?.into_iter().for_each(|(n, t)| {
182 let theme = theme_overrides.clone().merge(t).merge(theme::default_theme());
183 themes.insert(n, theme);
184 });
185
186 // Insert a default theme that defaults to using terminal colors:
187 let default_theme = theme_overrides.clone().merge(theme::default_theme());
188 themes.insert("default".into(), default_theme);
189 Ok(themes)
190}
191
171192const VERSION: &str = match option_env!("VERGEN_GIT_SHA") {
172193 None => env!("CARGO_PKG_VERSION"),
173194 Some(_) => concat!(env!("CARGO_PKG_VERSION"), " (", env!("VERGEN_GIT_SHA"), ")"),
@@ -898,6 +919,7 @@ pub struct TunableValues {
898919 pub sort: SortValues,
899920 pub state_event_display: bool,
900921 pub sync_delay_ms: u64,
922 pub theme: String,
901923 pub typing_notice_send: bool,
902924 pub typing_notice_display: bool,
903925 pub users: UserOverrides,
@@ -958,6 +980,7 @@ pub struct Tunables {
958980 pub request_timeout: Option<u64>,
959981 pub state_event_display: Option<bool>,
960982 pub sync_delay_ms: Option<u64>,
983 pub theme: Option<String>,
961984 pub typing_notice_send: Option<bool>,
962985 pub typing_notice_display: Option<bool>,
963986 pub username_display: Option<UserDisplayStyle>,
@@ -1016,6 +1039,7 @@ impl Tunables {
10161039 request_timeout: self.request_timeout.or(other.request_timeout),
10171040 state_event_display: self.state_event_display.or(other.state_event_display),
10181041 sync_delay_ms: self.sync_delay_ms.or(other.sync_delay_ms),
1042 theme: self.theme.or(other.theme),
10191043 typing_notice_send: self.typing_notice_send.or(other.typing_notice_send),
10201044 typing_notice_display: self.typing_notice_display.or(other.typing_notice_display),
10211045 username_display: self.username_display.or(other.username_display),
@@ -1065,6 +1089,7 @@ impl Tunables {
10651089 request_timeout: self.request_timeout.unwrap_or(DEFAULT_REQ_TIMEOUT),
10661090 state_event_display: self.state_event_display.unwrap_or(true),
10671091 sync_delay_ms: self.sync_delay_ms.unwrap_or(DEFAULT_SYNC_FREQUENCY),
1092 theme: self.theme.unwrap_or_else(|| "default".to_string()),
10681093 typing_notice_send: self.typing_notice_send.unwrap_or(true),
10691094 typing_notice_display: self.typing_notice_display.unwrap_or(true),
10701095 username_display: self.username_display.unwrap_or_default(),
@@ -1313,6 +1338,7 @@ pub struct ApplicationSettings {
13131338 pub profile_name: String,
13141339 pub profile: ProfileConfig,
13151340 pub theme: Arc<theme::ThemeValues>,
1341 pub themes: Arc<CompletionMap<String, theme::Theme>>,
13161342 pub tunables: TunableValues,
13171343 pub dirs: DirectoryValues,
13181344 pub layout: Layout,
@@ -1421,9 +1447,20 @@ impl ApplicationSettings {
14211447 let dirs = profile.dirs.take().unwrap_or_default().merge(dirs);
14221448 let dirs = dirs.values();
14231449
1424 let theme = theme.unwrap_or_default().merge(theme::default_theme());
1425 let theme = profile.theme.take().unwrap_or_default().merge(theme);
1426 let theme = Arc::new(theme.values());
1450 let themes_dir = config_dir.join("themes");
1451 let overrides = profile.theme.clone().unwrap_or_default().merge(theme.unwrap_or_default());
1452 let themes = Arc::new(load_themes(&themes_dir, overrides)?);
1453
1454 let theme = if let Some(theme) = themes.get(&tunables.theme) {
1455 Arc::new(theme.clone().values())
1456 } else {
1457 let err = anyhow!(
1458 "Could not find the {:?} theme; check {}?",
1459 tunables.theme,
1460 themes_dir.display()
1461 );
1462 return Err(err.into_boxed_dyn_error());
1463 };
14271464
14281465 // Create directories
14291466 dirs.create_dir_all()?;
@@ -1473,6 +1510,7 @@ impl ApplicationSettings {
14731510 sqlite_cache_dir,
14741511 profile_name,
14751512 profile,
1513 themes,
14761514 theme,
14771515 tunables,
14781516 dirs,
src/config/theme.rs +55
@@ -2,6 +2,7 @@
22use std::collections::hash_map::DefaultHasher;
33use std::hash::{Hash, Hasher};
44
5use anyhow::Context;
56use ratatui::widgets::BorderType;
67use serde::de::Error as SerdeError;
78use serde::de::Visitor;
@@ -107,6 +108,60 @@ pub fn default_theme() -> Theme {
107108 }
108109}
109110
111pub fn find_themes(dir: &Path) -> anyhow::Result<Vec<(String, Theme)>> {
112 let entries = std::fs::read_dir(dir)
113 .with_context(|| format!("Cannot list {} contents", dir.display()))?;
114 let mut themes = vec![];
115
116 for res in entries {
117 let Ok(entry) = res else {
118 continue;
119 };
120
121 let path = entry.path();
122
123 if !path.is_file() {
124 // Skip non-files.
125 continue;
126 }
127
128 if path.extension().is_none_or(|ext| ext != "toml") {
129 // Skip non-`.toml` files.
130 continue;
131 }
132
133 let Some(name) = path.file_stem() else {
134 continue;
135 };
136
137 let file = ThemeFile::load(&path)?;
138 let name = name.to_string_lossy().into_owned();
139 themes.push((name, file.theme));
140 }
141
142 Ok(themes)
143}
144
145/// A restricted subset of `config.toml` that only allows specifying themes.
146///
147/// This exists mainly to prevent people from thinking that values they put
148/// into the theme files are taking effect when they aren't: theme files are
149/// only used for sourcing theme information to prevent any weirdness around
150/// what happens when changing the theme with `:theme`.
151#[derive(Clone, Debug, Default, Deserialize)]
152#[serde(deny_unknown_fields)]
153pub struct ThemeFile {
154 pub theme: Theme,
155}
156
157impl ThemeFile {
158 pub fn load(path: &Path) -> anyhow::Result<Self> {
159 let input = std::fs::read_to_string(path)
160 .with_context(|| format!("failed to read {}", path.display()))?;
161 toml::de::from_str(&input).with_context(|| format!("failed to read {}", path.display()))
162 }
163}
164
110165/// Internal variant to get lowercase, hyphenated config options.
111166#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
112167#[serde(rename_all = "kebab-case")]
src/main.rs +9
@@ -577,6 +577,15 @@ impl Application {
577577 }
578578
579579 let info = match action {
580 IambAction::ChangeTheme(theme) => {
581 let Some(theme) = store.application.settings.themes.get(&theme) else {
582 let err = format!("Unknown theme: {theme:?}");
583 return Err(UIError::Failure(err.to_string()));
584 };
585
586 store.application.settings.theme = Arc::new(theme.clone().values());
587 None
588 },
580589 IambAction::ClearUnreads => {
581590 // Clear any notifications we displayed:
582591 store.application.open_notifications.clear();
src/tests.rs +2
@@ -173,6 +173,7 @@ pub fn mock_tunables() -> TunableValues {
173173 state_event_display: true,
174174 sync_delay_ms: 1000,
175175 terminal: Terminal::default().values(),
176 theme: "default".into(),
176177 typing_notice_send: true,
177178 typing_notice_display: true,
178179 users: vec![(TEST_USER5.clone(), UserDisplayTunables {
@@ -231,6 +232,7 @@ pub fn mock_settings() -> ApplicationSettings {
231232 macros: HashMap::default(),
232233 aliases: Aliases::default(),
233234 theme: crate::config::theme::default_theme().values().into(),
235 themes: Default::default(),
234236 enable_enhanced_keys: false,
235237 }
236238}
themes/ayu-dark.toml added +77
@@ -0,0 +1,77 @@
1# ayu-dark theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#0F1419)
11# COLOR_BG2 => Alternate background (#151A1E)
12# COLOR_BG3 => Completion menu selected item background (#14191F)
13#
14# COLOR_UI1 => Window border color, text completion menu (#5C6773)
15# COLOR_UI2 => Window title color (#E6E1CF)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#FF7733)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#F29718)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#E7C547)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#B8CC52)
22#
23# COLOR_TEXT1 => Primary text color (#FFEE99)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#E0E2EA)
25# COLOR_TEXT3 => Alternate text color (#FFB454)
26# COLOR_TEXT4 => Alternate text color (#E6B673)
27# COLOR_TEXT5 => Alternate text color (#36A3D9)
28#
29# COLOR_PLUS => Extra user colors used for users: "#2D3640"
30[theme.users]
31colors = [
32 "#FF7733",
33 "#F29718",
34 "#E7C547",
35 "#B8CC52",
36 "#E0E2EA",
37 "#FFB454",
38 "#E6B673",
39 "#36A3D9",
40 "#2D3640"
41]
42
43[theme.default]
44color = "#FFEE99"
45background = "#0F1419"
46
47[theme.completion]
48default.background = "#14191F"
49default.color = "#5C6773"
50selected.background = "#151A1E"
51selected.color = "#FFEE99"
52
53[theme.timeline]
54redacted.color = "#F29718"
55
56[theme.messages]
57code.color = "#E0E2EA"
58code.background = "#151A1E"
59emphasis.color = "#E6B673"
60strong.color = "#FFB454"
61
62[theme.rooms]
63default.color = "#36A3D9"
64unread.color = "#E0E2EA"
65labels.color = "#E6B673"
66
67[theme.windows]
68border.color = "#5C6773"
69title.color = "#E6E1CF"
70
71[theme.encryption]
72icon_encrypted.color = "#B8CC52"
73icon_unencrypted.color = "#FF7733"
74icon_unknown.color = "#E7C547"
75
76[theme.cmdbar]
77error.color = "#FF7733"
themes/ayu-light.toml added +77
@@ -0,0 +1,77 @@
1# doom-ayu-light-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#FFFFFF)
11# COLOR_BG2 => Alternate background (#FAFAFA)
12# COLOR_BG3 => Completion menu selected item background (#F3F3F3)
13#
14# COLOR_UI1 => Window border color, text completion menu (#ABB0B6)
15# COLOR_UI2 => Window title color (#5C6773)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#FF6A00)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#FF7733)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#E7C547)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#86B300)
22#
23# COLOR_TEXT1 => Primary text color (#14161B)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#A37ACC)
25# COLOR_TEXT3 => Alternate text color (#F29718)
26# COLOR_TEXT4 => Alternate text color (#36A3D9)
27# COLOR_TEXT5 => Alternate text color (#E6B673)
28#
29# COLOR_PLUS => Extra user colors used for users: "#D9D8D7"
30[theme.users]
31colors = [
32 "#FF6A00",
33 "#FF7733",
34 "#E7C547",
35 "#86B300",
36 "#A37ACC",
37 "#F29718",
38 "#36A3D9",
39 "#E6B673",
40 "#D9D8D7"
41]
42
43[theme.default]
44color = "#14161B"
45background = "#FFFFFF"
46
47[theme.completion]
48default.background = "#F3F3F3"
49default.color = "#ABB0B6"
50selected.background = "#FAFAFA"
51selected.color = "#14161B"
52
53[theme.timeline]
54redacted.color = "#FF7733"
55
56[theme.messages]
57code.color = "#A37ACC"
58code.background = "#FAFAFA"
59emphasis.color = "#36A3D9"
60strong.color = "#F29718"
61
62[theme.rooms]
63default.color = "#E6B673"
64unread.color = "#A37ACC"
65labels.color = "#36A3D9"
66
67[theme.windows]
68border.color = "#ABB0B6"
69title.color = "#5C6773"
70
71[theme.encryption]
72icon_encrypted.color = "#86B300"
73icon_unencrypted.color = "#FF6A00"
74icon_unknown.color = "#E7C547"
75
76[theme.cmdbar]
77error.color = "#FF6A00"
themes/ayu-mirage.toml added +77
@@ -0,0 +1,77 @@
1# doom-ayu-mirage-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#D9D7CE)
11# COLOR_BG2 => Alternate background (#272D38)
12# COLOR_BG3 => Completion menu selected item background (#242B38)
13#
14# COLOR_UI1 => Window border color, text completion menu (#FFD57F)
15# COLOR_UI2 => Window title color (#3D4751)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#FFAE57)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#5C6773)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#FFC44C)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#BBE67E)
22#
23# COLOR_TEXT1 => Primary text color (#14161B)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#D4BFFF)
25# COLOR_TEXT3 => Alternate text color (#5CCFE6)
26# COLOR_TEXT4 => Alternate text color (#80D4FF)
27# COLOR_TEXT5 => Alternate text color (#FFCC66)
28#
29# COLOR_PLUS => Extra user colors used for users:
30[theme.users]
31colors = [
32 "#FFAE57",
33 "#5C6773",
34 "#FFC44C",
35 "#BBE67E",
36 "#D4BFFF",
37 "#5CCFE6",
38 "#80D4FF",
39 "#FFCC66",
40
41]
42
43[theme.default]
44color = "#14161B"
45background = "#D9D7CE"
46
47[theme.completion]
48default.background = "#242B38"
49default.color = "#FFD57F"
50selected.background = "#272D38"
51selected.color = "#14161B"
52
53[theme.timeline]
54redacted.color = "#5C6773"
55
56[theme.messages]
57code.color = "#D4BFFF"
58code.background = "#272D38"
59emphasis.color = "#80D4FF"
60strong.color = "#5CCFE6"
61
62[theme.rooms]
63default.color = "#FFCC66"
64unread.color = "#D4BFFF"
65labels.color = "#80D4FF"
66
67[theme.windows]
68border.color = "#FFD57F"
69title.color = "#3D4751"
70
71[theme.encryption]
72icon_encrypted.color = "#BBE67E"
73icon_unencrypted.color = "#FFAE57"
74icon_unknown.color = "#FFC44C"
75
76[theme.cmdbar]
77error.color = "#FFAE57"
themes/gruvbox-material-light.toml added +77
@@ -0,0 +1,77 @@
1# gruvbox-material-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#FBF1C7)
11# COLOR_BG2 => Alternate background (#F4E8BE)
12# COLOR_BG3 => Completion menu selected item background (#F2E5BC)
13#
14# COLOR_UI1 => Window border color, text completion menu (#DDCCAB)
15# COLOR_UI2 => Window title color (#654735)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#C14A4A)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#C35E0A)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#B47109)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#6C782E)
22#
23# COLOR_TEXT1 => Primary text color (#4F3829)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#945E80)
25# COLOR_TEXT3 => Alternate text color (#45707A)
26# COLOR_TEXT4 => Alternate text color (#4C7A5D)
27# COLOR_TEXT5 => Alternate text color (#928374)
28#
29# COLOR_PLUS => Extra user colors used for users:
30[theme.users]
31colors = [
32 "#C14A4A",
33 "#C35E0A",
34 "#B47109",
35 "#6C782E",
36 "#945E80",
37 "#45707A",
38 "#4C7A5D",
39 "#928374",
40
41]
42
43[theme.default]
44color = "#4F3829"
45background = "#FBF1C7"
46
47[theme.completion]
48default.background = "#F2E5BC"
49default.color = "#DDCCAB"
50selected.background = "#F4E8BE"
51selected.color = "#4F3829"
52
53[theme.timeline]
54redacted.color = "#C35E0A"
55
56[theme.messages]
57code.color = "#945E80"
58code.background = "#F4E8BE"
59emphasis.color = "#4C7A5D"
60strong.color = "#45707A"
61
62[theme.rooms]
63default.color = "#928374"
64unread.color = "#945E80"
65labels.color = "#4C7A5D"
66
67[theme.windows]
68border.color = "#DDCCAB"
69title.color = "#654735"
70
71[theme.encryption]
72icon_encrypted.color = "#6C782E"
73icon_unencrypted.color = "#C14A4A"
74icon_unknown.color = "#B47109"
75
76[theme.cmdbar]
77error.color = "#C14A4A"
themes/jellybeans-dark.toml added +77
@@ -0,0 +1,77 @@
1# jellybeans-muted-dark theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#101010)
11# COLOR_BG2 => Alternate background (#1C1C1C)
12# COLOR_BG3 => Completion menu selected item background (#1E1E1C)
13#
14# COLOR_UI1 => Window border color, text completion menu (#83ADC3)
15# COLOR_UI2 => Window title color (#DAD6C8)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#C88A77)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#7A7A7A)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#58534F)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#909C6E)
22#
23# COLOR_TEXT1 => Primary text color (#F9F5EC)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#EACE98)
25# COLOR_TEXT3 => Alternate text color (#A6C3D9)
26# COLOR_TEXT4 => Alternate text color (#C2BDB8)
27# COLOR_TEXT5 => Alternate text color (#B8AED3)
28#
29# COLOR_PLUS => Extra user colors used for users: "#617B87"
30[theme.users]
31colors = [
32 "#C88A77",
33 "#7A7A7A",
34 "#58534F",
35 "#909C6E",
36 "#EACE98",
37 "#A6C3D9",
38 "#C2BDB8",
39 "#B8AED3",
40 "#617B87"
41]
42
43[theme.default]
44color = "#F9F5EC"
45background = "#101010"
46
47[theme.completion]
48default.background = "#1E1E1C"
49default.color = "#83ADC3"
50selected.background = "#1C1C1C"
51selected.color = "#F9F5EC"
52
53[theme.timeline]
54redacted.color = "#7A7A7A"
55
56[theme.messages]
57code.color = "#EACE98"
58code.background = "#1C1C1C"
59emphasis.color = "#C2BDB8"
60strong.color = "#A6C3D9"
61
62[theme.rooms]
63default.color = "#B8AED3"
64unread.color = "#EACE98"
65labels.color = "#C2BDB8"
66
67[theme.windows]
68border.color = "#83ADC3"
69title.color = "#DAD6C8"
70
71[theme.encryption]
72icon_encrypted.color = "#909C6E"
73icon_unencrypted.color = "#C88A77"
74icon_unknown.color = "#58534F"
75
76[theme.cmdbar]
77error.color = "#C88A77"
themes/jellybeans-light.toml added +77
@@ -0,0 +1,77 @@
1# jellybeans-muted-light-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#F7F3EB)
11# COLOR_BG2 => Alternate background (#EBE7DF)
12# COLOR_BG3 => Completion menu selected item background (#47463F)
13#
14# COLOR_UI1 => Window border color, text completion menu (#475B68)
15# COLOR_UI2 => Window title color (#222120)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#8C594A)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#787775)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#A28853)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#6D7F59)
22#
23# COLOR_TEXT1 => Primary text color (#0F0E0D)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#2D2C2A)
25# COLOR_TEXT3 => Alternate text color (#334A84)
26# COLOR_TEXT4 => Alternate text color (#3C5971)
27# COLOR_TEXT5 => Alternate text color (#655683)
28#
29# COLOR_PLUS => Extra user colors used for users: "#5C5650"
30[theme.users]
31colors = [
32 "#8C594A",
33 "#787775",
34 "#A28853",
35 "#6D7F59",
36 "#2D2C2A",
37 "#334A84",
38 "#3C5971",
39 "#655683",
40 "#5C5650"
41]
42
43[theme.default]
44color = "#0F0E0D"
45background = "#F7F3EB"
46
47[theme.completion]
48default.background = "#47463F"
49default.color = "#475B68"
50selected.background = "#EBE7DF"
51selected.color = "#0F0E0D"
52
53[theme.timeline]
54redacted.color = "#787775"
55
56[theme.messages]
57code.color = "#2D2C2A"
58code.background = "#EBE7DF"
59emphasis.color = "#3C5971"
60strong.color = "#334A84"
61
62[theme.rooms]
63default.color = "#655683"
64unread.color = "#2D2C2A"
65labels.color = "#3C5971"
66
67[theme.windows]
68border.color = "#475B68"
69title.color = "#222120"
70
71[theme.encryption]
72icon_encrypted.color = "#6D7F59"
73icon_unencrypted.color = "#8C594A"
74icon_unknown.color = "#A28853"
75
76[theme.cmdbar]
77error.color = "#8C594A"
themes/kanagawa-dark.toml added +77
@@ -0,0 +1,77 @@
1# kanagawa-wave-dark theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#16161D)
11# COLOR_BG2 => Alternate background (#1F1F28)
12# COLOR_BG3 => Completion menu selected item background (#2A2A37)
13#
14# COLOR_UI1 => Window border color, text completion menu (#957FB8)
15# COLOR_UI2 => Window title color (#E6C384)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#D27E99)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#FF9E3B)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#C0A36E)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#98BB6C)
22#
23# COLOR_TEXT1 => Primary text color (#DCD7BA)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#C8C093)
25# COLOR_TEXT3 => Alternate text color (#7FB4CA)
26# COLOR_TEXT4 => Alternate text color (#9CABCA)
27# COLOR_TEXT5 => Alternate text color (#7E9CD8)
28#
29# COLOR_PLUS => Extra user colors used for users: "#54546D", "#727169"
30[theme.users]
31colors = [
32 "#D27E99",
33 "#FF9E3B",
34 "#C0A36E",
35 "#98BB6C",
36 "#C8C093",
37 "#7FB4CA",
38 "#9CABCA",
39 "#7E9CD8",
40 "#54546D", "#727169"
41]
42
43[theme.default]
44color = "#DCD7BA"
45background = "#16161D"
46
47[theme.completion]
48default.background = "#2A2A37"
49default.color = "#957FB8"
50selected.background = "#1F1F28"
51selected.color = "#DCD7BA"
52
53[theme.timeline]
54redacted.color = "#FF9E3B"
55
56[theme.messages]
57code.color = "#C8C093"
58code.background = "#1F1F28"
59emphasis.color = "#9CABCA"
60strong.color = "#7FB4CA"
61
62[theme.rooms]
63default.color = "#7E9CD8"
64unread.color = "#C8C093"
65labels.color = "#9CABCA"
66
67[theme.windows]
68border.color = "#957FB8"
69title.color = "#E6C384"
70
71[theme.encryption]
72icon_encrypted.color = "#98BB6C"
73icon_unencrypted.color = "#D27E99"
74icon_unknown.color = "#C0A36E"
75
76[theme.cmdbar]
77error.color = "#D27E99"
themes/kanagawa-light.toml added +77
@@ -0,0 +1,77 @@
1# kanagawa-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#F2ECBC)
11# COLOR_BG2 => Alternate background (#D5CEA3)
12# COLOR_BG3 => Completion menu selected item background (#E7DBA0)
13#
14# COLOR_UI1 => Window border color, text completion menu (#836F4A)
15# COLOR_UI2 => Window title color (#624C83)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#B35B79)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#E98A00)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#77713F)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#6F894E)
22#
23# COLOR_TEXT1 => Primary text color (#43436C)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#4D699B)
25# COLOR_TEXT3 => Alternate text color (#545464)
26# COLOR_TEXT4 => Alternate text color (#6693BF)
27# COLOR_TEXT5 => Alternate text color (#4E8CA2)
28#
29# COLOR_PLUS => Extra user colors used for users: "#8A8980", "#A09CAC"
30[theme.users]
31colors = [
32 "#B35B79",
33 "#E98A00",
34 "#77713F",
35 "#6F894E",
36 "#4D699B",
37 "#545464",
38 "#6693BF",
39 "#4E8CA2",
40 "#8A8980", "#A09CAC"
41]
42
43[theme.default]
44color = "#43436C"
45background = "#F2ECBC"
46
47[theme.completion]
48default.background = "#E7DBA0"
49default.color = "#836F4A"
50selected.background = "#D5CEA3"
51selected.color = "#43436C"
52
53[theme.timeline]
54redacted.color = "#E98A00"
55
56[theme.messages]
57code.color = "#4D699B"
58code.background = "#D5CEA3"
59emphasis.color = "#6693BF"
60strong.color = "#545464"
61
62[theme.rooms]
63default.color = "#4E8CA2"
64unread.color = "#4D699B"
65labels.color = "#6693BF"
66
67[theme.windows]
68border.color = "#836F4A"
69title.color = "#624C83"
70
71[theme.encryption]
72icon_encrypted.color = "#6F894E"
73icon_unencrypted.color = "#B35B79"
74icon_unknown.color = "#77713F"
75
76[theme.cmdbar]
77error.color = "#B35B79"
themes/molokai-dark.toml added +77
@@ -0,0 +1,77 @@
1# oh-my-monokai-dark theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#19181A)
11# COLOR_BG2 => Alternate background (#1E1E1E)
12# COLOR_BG3 => Completion menu selected item background (#282828)
13#
14# COLOR_UI1 => Window border color, text completion menu (#E373CE)
15# COLOR_UI2 => Window title color (#F6F6F6)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#FF3F4F)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#5C6370)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#E5A422)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#727072)
22#
23# COLOR_TEXT1 => Primary text color (#FCFCFA)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#81F900)
25# COLOR_TEXT3 => Alternate text color (#FFD945)
26# COLOR_TEXT4 => Alternate text color (#00DFFF)
27# COLOR_TEXT5 => Alternate text color (#C1C0C0)
28#
29# COLOR_PLUS => Extra user colors used for users:
30[theme.users]
31colors = [
32 "#FF3F4F",
33 "#5C6370",
34 "#E5A422",
35 "#727072",
36 "#81F900",
37 "#FFD945",
38 "#00DFFF",
39 "#C1C0C0",
40
41]
42
43[theme.default]
44color = "#FCFCFA"
45background = "#19181A"
46
47[theme.completion]
48default.background = "#282828"
49default.color = "#E373CE"
50selected.background = "#1E1E1E"
51selected.color = "#FCFCFA"
52
53[theme.timeline]
54redacted.color = "#5C6370"
55
56[theme.messages]
57code.color = "#81F900"
58code.background = "#1E1E1E"
59emphasis.color = "#00DFFF"
60strong.color = "#FFD945"
61
62[theme.rooms]
63default.color = "#C1C0C0"
64unread.color = "#81F900"
65labels.color = "#00DFFF"
66
67[theme.windows]
68border.color = "#E373CE"
69title.color = "#F6F6F6"
70
71[theme.encryption]
72icon_encrypted.color = "#727072"
73icon_unencrypted.color = "#FF3F4F"
74icon_unknown.color = "#E5A422"
75
76[theme.cmdbar]
77error.color = "#FF3F4F"
themes/tokyonight-dark.toml added +77
@@ -0,0 +1,77 @@
1# tokyonight-dark theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#1F2335)
11# COLOR_BG2 => Alternate background (#24283B)
12# COLOR_BG3 => Completion menu selected item background (#292E42)
13#
14# COLOR_UI1 => Window border color, text completion menu (#3B4261)
15# COLOR_UI2 => Window title color (#C0CAF5)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#FF8349)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#737AA2)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#2AC3DE)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#9ECE6A)
22#
23# COLOR_TEXT1 => Primary text color (#89DDFF)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#A9B1D6)
25# COLOR_TEXT3 => Alternate text color (#BB9AF7)
26# COLOR_TEXT4 => Alternate text color (#7AA2F7)
27# COLOR_TEXT5 => Alternate text color (#565F89)
28#
29# COLOR_PLUS => Extra user colors used for users:
30[theme.users]
31colors = [
32 "#FF8349",
33 "#737AA2",
34 "#2AC3DE",
35 "#9ECE6A",
36 "#A9B1D6",
37 "#BB9AF7",
38 "#7AA2F7",
39 "#565F89",
40
41]
42
43[theme.default]
44color = "#89DDFF"
45background = "#1F2335"
46
47[theme.completion]
48default.background = "#292E42"
49default.color = "#3B4261"
50selected.background = "#24283B"
51selected.color = "#89DDFF"
52
53[theme.timeline]
54redacted.color = "#737AA2"
55
56[theme.messages]
57code.color = "#A9B1D6"
58code.background = "#24283B"
59emphasis.color = "#7AA2F7"
60strong.color = "#BB9AF7"
61
62[theme.rooms]
63default.color = "#565F89"
64unread.color = "#A9B1D6"
65labels.color = "#7AA2F7"
66
67[theme.windows]
68border.color = "#3B4261"
69title.color = "#C0CAF5"
70
71[theme.encryption]
72icon_encrypted.color = "#9ECE6A"
73icon_unencrypted.color = "#FF8349"
74icon_unknown.color = "#2AC3DE"
75
76[theme.cmdbar]
77error.color = "#FF8349"
themes/tokyonight-light.toml added +77
@@ -0,0 +1,77 @@
1# tokyonight-light theme for iamb
2#
3# You can place this directly in your `~/.config/iamb/themes` directory to make it
4# discoverable, or copy its contents directly into your `config.toml`.
5
6#
7# If you are looking to remix this file to make a derived theme, the colors were
8# picked and assigned as:
9#
10# COLOR_BG1 => Primary background (#E9E9EC)
11# COLOR_BG2 => Alternate background (#E1E2E7)
12# COLOR_BG3 => Completion menu selected item background (#C4C8DA)
13#
14# COLOR_UI1 => Window border color, text completion menu (#848CB5)
15# COLOR_UI2 => Window title color (#3760BF)
16#
17# COLOR_WARN1 => Errors, unencrypted, etc. - typically a red (#B15C00)
18# COLOR_WARN2 => Redacted messages - typically a red or light orange (#68709A)
19# COLOR_WARN3 => Unknown encryption status - typically a yellow (#188092)
20#
21# COLOR_GOOD1 => Encrypted indicator - typically a green (#587539)
22#
23# COLOR_TEXT1 => Primary text color (#14161B)
24# COLOR_TEXT2 => Contrast text color, should differ from COLOR_TEXT1 (#006A83)
25# COLOR_TEXT3 => Alternate text color (#9854F1)
26# COLOR_TEXT4 => Alternate text color (#2E7DE9)
27# COLOR_TEXT5 => Alternate text color (#6172B0)
28#
29# COLOR_PLUS => Extra user colors used for users: "#A8AECB"
30[theme.users]
31colors = [
32 "#B15C00",
33 "#68709A",
34 "#188092",
35 "#587539",
36 "#006A83",
37 "#9854F1",
38 "#2E7DE9",
39 "#6172B0",
40 "#A8AECB"
41]
42
43[theme.default]
44color = "#14161B"
45background = "#E9E9EC"
46
47[theme.completion]
48default.background = "#C4C8DA"
49default.color = "#848CB5"
50selected.background = "#E1E2E7"
51selected.color = "#14161B"
52
53[theme.timeline]
54redacted.color = "#68709A"
55
56[theme.messages]
57code.color = "#006A83"
58code.background = "#E1E2E7"
59emphasis.color = "#2E7DE9"
60strong.color = "#9854F1"
61
62[theme.rooms]
63default.color = "#6172B0"
64unread.color = "#006A83"
65labels.color = "#2E7DE9"
66
67[theme.windows]
68border.color = "#848CB5"
69title.color = "#3760BF"
70
71[theme.encryption]
72icon_encrypted.color = "#587539"
73icon_unencrypted.color = "#B15C00"
74icon_unknown.color = "#188092"
75
76[theme.cmdbar]
77error.color = "#B15C00"