Tokenize remaining component layout metrics

- Add combobox, alert edge, and code gutter tokens.
- Replace rem-derived literals in alert, combobox, code, and diff.
This commit is contained in:
2026-11-16 18:35:43 +07:00
parent 1dafa87bef
commit 2c92f26e20
6 changed files with 30 additions and 14 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use gpui::StyledText;
#[cfg(any(feature = "code", feature = "markdown"))]
use gpui::{App, HighlightStyle, Hsla, IntoElement, ParentElement as _, Styled as _, div};
#[cfg(any(feature = "code", feature = "markdown"))]
use gpui_native_theme::{ActiveTheme as _, ColorTokens, Ramps};
use gpui_native_theme::{ActiveTheme as _, CODE_GUTTER_WIDTH, ColorTokens, Ramps};
#[cfg(feature = "diff")]
use gpui_native_theme::{WASH_ALPHA, WASH_ALPHA_GUTTER, WASH_ALPHA_STRONG};
@@ -74,7 +74,7 @@ where
let theme = cx.theme();
div()
.size_10()
.size(CODE_GUTTER_WIDTH)
.flex()
.items_center()
.justify_center()