T16 Finance: market charts with kinds, volume, profile, studies, drawings, compare, alerts and sync (T16a–b); quotes, book, tape and DOM (T16c); order entry, blotter, risk, options and payoff (T16d); markets, calendars, portfolio and wallet (T16e); typography::Ellipsis ends lines that gpui's truncate clipped; chart notes stack and ticks label round values

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 23:30:04 -04:00
1 parent efde9d64b0
commit 8d43b7a880
76 files changed
+10311 -173

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ use super::{Choice, Combobox, TextInput, options::OnValue};
use crate::theme::{ActiveTheme, TextSize};
/// The flag emoji of a two-letter region code.
fn flag(region: &str) -> String {
pub(crate) fn flag(region: &str) -> String {
region
.chars()
.map(|letter| {
+1
View File
@@ -48,6 +48,7 @@ pub use avatar::AvatarUpload;
pub use card::{CheckboxCard, RadioCard};
pub use cascade::{Cascade, Cascader};
pub use catalogs::FontPicker;
pub(crate) use catalogs::flag;
pub(crate) use check::check_mark;
pub use check::{CheckState, Checkbox, CheckboxGroup};
pub use checked::{EmailInput, UrlInput, is_email, is_url};
+2 -4
View File
@@ -10,6 +10,7 @@ use crate::{
motion,
primitives::{Icon, IconName},
theme::{ActiveTheme, ControlSize, Elevation, IconSize, Radius, TextSize},
typography::Ellipsis,
};
/// One option: a value, the label shown for it, and an optional icon and note.
@@ -130,10 +131,7 @@ pub(crate) fn option_row(
div()
.flex_1()
.min_w_0()
.overflow_hidden()
.text_ellipsis()
.whitespace_nowrap()
.child(choice.label.clone()),
.child(Ellipsis::new(choice.label.clone())),
)
.when_some(choice.note.clone(), |row, note| {
row.child(div().text_color(colors.fg_subtle).child(note))
+2 -4
View File
@@ -14,6 +14,7 @@ use super::{
use crate::{
primitives::{Icon, IconName, tab_stop},
theme::{ActiveTheme, ControlSize, IconSize, Radius},
typography::Ellipsis,
};
/// An open list's place and cursor, kept between frames.
@@ -117,11 +118,8 @@ pub(crate) fn field_text(
div()
.flex_1()
.min_w_0()
.overflow_hidden()
.text_ellipsis()
.whitespace_nowrap()
.text_color(color)
.child(text.unwrap_or(placeholder))
.child(Ellipsis::new(text.unwrap_or(placeholder)))
}
/// The list a trigger opens: its rows, the one chosen, and whether the trigger holds focus.
+2 -3
View File
@@ -10,7 +10,7 @@ use crate::{
motion::ProgressBar,
primitives::{Icon, IconName},
theme::{ActiveTheme, ControlSize, IconSize, TextSize},
typography::{format::file_size, tabular},
typography::{Ellipsis, format::file_size, tabular},
};
/// Where one upload stands.
@@ -164,9 +164,8 @@ impl RenderOnce for UploadList {
div()
.flex_1()
.min_w_0()
.truncate()
.font_weight(FontWeight::MEDIUM)
.child(upload.name.clone()),
.child(Ellipsis::new(upload.name.clone())),
)
.child(
tabular(div())