Use ui_size to build icon button
This commit is contained in:
parent
7cb00aeb34
commit
65828c14fc
2 changed files with 15 additions and 32 deletions
|
@ -6,24 +6,9 @@ pub use gpui3::{
|
|||
use crate::settings::user_settings;
|
||||
pub use crate::{theme, ButtonVariant, ElementExt, Theme};
|
||||
|
||||
use gpui3::{hsla, rems, rgb, AbsoluteLength, Hsla, Rems};
|
||||
use gpui3::{hsla, rems, rgb, Hsla, Rems};
|
||||
use strum::EnumIter;
|
||||
|
||||
#[derive(Clone, Copy)]
|
||||
pub struct FakeSettings {
|
||||
pub list_indent_depth: AbsoluteLength,
|
||||
pub default_panel_size: AbsoluteLength,
|
||||
}
|
||||
|
||||
impl Default for FakeSettings {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
list_indent_depth: rems(0.3).into(),
|
||||
default_panel_size: AbsoluteLength::Rems(rems(16.)),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct SystemColor {
|
||||
pub transparent: Hsla,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue