Skip to content

Commit

Permalink
remove themen key config options
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Oct 17, 2023
1 parent eb63396 commit d81aa0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 2 additions & 6 deletions helix-term/src/ui/picker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,8 @@ impl<T: Item + 'static> Picker<T> {
}

let text_style = cx.editor.theme.get("ui.text");
let selected = cx.editor.theme.get(&picker_config.selected_style);
let highlight_style = cx
.editor
.theme
.get(&picker_config.highlight_style)
.add_modifier(Modifier::BOLD);
let selected = cx.editor.theme.get("ui.text.focus");
let highlight_style = cx.editor.theme.get("special").add_modifier(Modifier::BOLD);

// -- Render the frame:
// clear area
Expand Down
5 changes: 1 addition & 4 deletions helix-view/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,16 +166,13 @@ impl Default for GutterLineNumbersConfig {
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "kebab-case", default, deny_unknown_fields)]
pub struct PickerConfig {
pub selected_style: String,
pub highlight_style: String,
/// Symbol in front of selected picker item row
pub highlight_symbol: String,
}

impl Default for PickerConfig {
fn default() -> Self {
Self {
selected_style: "ui.text.focus".to_string(),
highlight_style: "special".to_string(),
highlight_symbol: " > ".to_string(),
}
}
Expand Down

0 comments on commit d81aa0d

Please sign in to comment.