Define theme/ui text style settings in theme crate
This commit is contained in:
parent
5c729c0e56
commit
67a25126d4
86 changed files with 530 additions and 637 deletions
|
@ -7,7 +7,7 @@ use gpui::{
|
|||
};
|
||||
use picker::{Picker, PickerDelegate, PickerEvent};
|
||||
use project::Fs;
|
||||
use settings::{update_settings_file, Settings};
|
||||
use settings::update_settings_file;
|
||||
use std::sync::Arc;
|
||||
use util::ResultExt;
|
||||
use workspace::Workspace;
|
||||
|
@ -139,7 +139,7 @@ impl PickerDelegate for BaseKeymapSelectorDelegate {
|
|||
selected: bool,
|
||||
cx: &gpui::AppContext,
|
||||
) -> gpui::AnyElement<Picker<Self>> {
|
||||
let theme = &cx.global::<Settings>().theme;
|
||||
let theme = &theme::current(cx);
|
||||
let keymap_match = &self.matches[ix];
|
||||
let style = theme.picker.item.style_for(mouse_state, selected);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue