Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add live preview to theme picker #1798

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
94a377f
Add theme picker with live preview
jharrilim Mar 12, 2022
753131e
Add live theme preview to :theme command
jharrilim Mar 12, 2022
b0c4f7c
cargo fmt
jharrilim Mar 12, 2022
6bfde21
Fix clippy warnings
jharrilim Mar 12, 2022
1481093
Remove picker variant
jharrilim Mar 13, 2022
fe5ec9e
Remove unused import
jharrilim Mar 13, 2022
2d96be2
Cleanup
jharrilim Mar 15, 2022
c638d0b
Change current_theme to last_theme
jharrilim Mar 15, 2022
dcb09e0
Fix accidental comment flash deletion
jharrilim Mar 15, 2022
3c1638b
Merge branch 'master' into feat/add-theme-picker-with-live-preview-jh…
jharrilim Mar 18, 2022
8dfd840
Merge branch 'master' into feat/add-theme-picker-with-live-preview-jh…
jharrilim Jun 18, 2022
0178162
Typo
jharrilim Jun 18, 2022
5f85522
Remove theme cache
jharrilim Jun 18, 2022
97ed0d6
Add some comments
jharrilim Jun 18, 2022
01467e3
Refactor some theme handling
jharrilim Jun 18, 2022
b782d07
Remove unnecessary renames
jharrilim Jun 19, 2022
3e9b33e
Constrain last_theme theme preview lifecycle
jharrilim Jun 19, 2022
a05186f
Switch to bitflag implementation
jharrilim Jun 19, 2022
a83069e
Better handling of last_theme
jharrilim Jun 20, 2022
89ec841
Sort theme names
jharrilim Jun 20, 2022
1d1c8cc
Better memory juggling
jharrilim Jun 20, 2022
0af7ed6
Missed a branch
jharrilim Jun 20, 2022
a8514d0
Remove name from theme, switch bitand to &
jharrilim Jun 22, 2022
1961ac5
Merge branch 'master' into feat/add-theme-picker-with-live-preview-jh…
jharrilim Jun 22, 2022
860665b
cargo fmt
jharrilim Jun 22, 2022
5eb1d41
Update helix-view/src/editor.rs
jharrilim Jun 24, 2022
5a313c9
Switch boolean to enum
jharrilim Jun 26, 2022
bc3a1de
Merge branch 'feat/add-theme-picker-with-live-preview-jharrilim' of g…
jharrilim Jun 26, 2022
670f0b8
Remove bitflag impl
jharrilim Jul 2, 2022
b81aedf
cargo fmt
jharrilim Jul 2, 2022
8f6991f
Remove un-needed type arg
jharrilim Jul 2, 2022
251d61a
cargo fmt
jharrilim Jul 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions helix-term/src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,7 @@ impl Application {
.ok()
.filter(|theme| (true_color || theme.is_16_color()))
})
.unwrap_or_else(|| {
if true_color {
theme_loader.default()
} else {
theme_loader.base16_default()
}
});
.unwrap_or_else(|| theme_loader.default_theme(true_color));

let syn_loader_conf = user_syntax_loader().unwrap_or_else(|err| {
eprintln!("Bad language config: {}", err);
Expand Down Expand Up @@ -358,13 +352,7 @@ impl Application {
})
.ok()
.filter(|theme| (true_color || theme.is_16_color()))
.unwrap_or_else(|| {
if true_color {
self.theme_loader.default()
} else {
self.theme_loader.base16_default()
}
}),
.unwrap_or_else(|| self.theme_loader.default_theme(true_color)),
);
}

Expand Down
Loading