Raise the type scale to a 14px floor
The smallest text is now 14px, with body at 16, titles at 20 and display at 30. Controls grow to 28px through a shared CONTROL height, and bars, the sidebar, DAG nodes, panels and the default window grow to fit. Task list inputs may shrink so their delete buttons line up. Co-Authored-By: Claude Opus 5.5
@@ -7,7 +7,7 @@ use crate::{editor, exec, paths, settings, workflow, workspace};
77 use rune::{Cx, El, col, row, text};
88 use rune_kit::Kit;
99
10-pub const SIDE: f32 = 214.0;
10+pub const SIDE: f32 = 260.0;
1111
1212 pub fn frame(s: &App, k: &Kit, _cx: &mut Cx<App>, layer: &mut Vec<El>) -> El {
1313 let active = s.tab().clone();
@@ -61,7 +61,7 @@ pub fn shell(tabs: Vec<El>, side: Option<El>, main: El, status: El) -> El {
6161 .h_full()
6262 .child(
6363 row()
64- .h(32.0)
64+ .h(36.0)
6565 .w_full()
6666 .fill(p.surface)
6767 .child(brand)
@@ -78,7 +78,7 @@ pub fn shell(tabs: Vec<El>, side: Option<El>, main: El, status: El) -> El {
7878 )
7979 .child(
8080 row()
81- .h(24.0)
81+ .h(28.0)
8282 .w_full()
8383 .px(12.0)
8484 .gap(16.0)
@@ -70,7 +70,7 @@ fn toolbar(e: &Editor) -> El {
7070 ),
7171 p.accent,
7272 )
73- .max_w(260.0)
73+ .max_w(320.0)
7474 .truncate(),
7575 )
7676 .child(btn(
@@ -86,7 +86,7 @@ fn toolbar(e: &Editor) -> El {
8686 .key("generate"),
8787 };
8888 row()
89- .h(40.0)
89+ .h(44.0)
9090 .px(12.0)
9191 .fill(p.surface)
9292 .center_y()
@@ -228,7 +228,7 @@ fn popover(e: &Editor, k: &Kit) -> Option<El> {
228228 let field = rune_kit::TextInput::new(input)
229229 .placeholder("tell the agent what to write or change")
230230 .text_style(theme::BODY)
231- .height(24.0)
231+ .height(theme::CONTROL)
232232 .width(None)
233233 .on_edit(move |s: &mut App| s.assist_input(&a))
234234 .on_submit(move |s: &mut App, _| s.assist_send(&b))
@@ -309,7 +309,7 @@ fn popover(e: &Editor, k: &Kit) -> Option<El> {
309309 let pop = el()
310310 .key("assist")
311311 .absolute(24.0, 40.0)
312- .w(380.0)
312+ .w(480.0)
313313 .padding(8.0)
314314 .fill(p.raised)
315315 .border(1.0, p.line)
@@ -38,7 +38,7 @@ pub fn view(s: &App, stem: &str) -> El {
3838 };
3939 let idle = !matches!(phase, Phase::Running | Phase::Pausing | Phase::Done);
4040 let controls = row()
41- .h(40.0)
41+ .h(44.0)
4242 .px(12.0)
4343 .gap(8.0)
4444 .center_y()
@@ -65,7 +65,7 @@ pub fn view(s: &App, stem: &str) -> El {
6565 let step = r.machine.current_step().unwrap_or(steps as u32);
6666 let pct = r.progress();
6767 let stats = row()
68- .h(52.0)
68+ .h(64.0)
6969 .fill(p.surface)
7070 .child(stat(&format!("{:.0}%", pct * 100.0), "progress", p.accent))
7171 .child(stat(
@@ -109,7 +109,7 @@ pub fn view(s: &App, stem: &str) -> El {
109109 .child(
110110 col()
111111 .key("run-task")
112- .max_h(260.0)
112+ .max_h(320.0)
113113 .padding(16.0)
114114 .border_sides([1.0, 0.0, 0.0, 0.0], p.line)
115115 .scroll(rune::ScrollSpec {
@@ -122,7 +122,7 @@ pub fn view(s: &App, stem: &str) -> El {
122122
123123 fn terminal(s: &App, r: &Run, stem: &str) -> El {
124124 let p = pal();
125- let tabs = row().h(28.0).fill(p.surface).children(
125+ let tabs = row().h(32.0).fill(p.surface).children(
126126 r.wf.tasks
127127 .iter()
128128 .enumerate()
@@ -167,10 +167,10 @@ fn terminal(s: &App, r: &Run, stem: &str) -> El {
167167 let path = format!("{dir}/{f}");
168168 btn(f, Kind::Ghost, Some(move |s: &mut App| s.open_link(&path)))
169169 .min_w(0.0)
170- .max_w(204.0)
170+ .max_w(244.0)
171171 });
172172 let side = col()
173- .w(220.0)
173+ .w(280.0)
174174 .padding(8.0)
175175 .gap(8.0)
176176 .fill(p.surface)
@@ -190,7 +190,7 @@ fn terminal(s: &App, r: &Run, stem: &str) -> El {
190190 );
191191 col()
192192 .grow(1.0)
193- .min_h(140.0)
193+ .min_h(180.0)
194194 .fill(p.bg)
195195 .border_sides([1.0, 0.0, 0.0, 0.0], p.line)
196196 .child(tabs)
@@ -28,7 +28,7 @@ fn main() {
2828 setup: Some(App::setup),
2929 poll: Some(App::poll),
3030 on_key: Some(app::on_key),
31- min_size: Some((960.0, 600.0)),
32- ..AppSpec::new("cast", (1280.0, 800.0), App::init, app::view)
31+ min_size: Some((1024.0, 640.0)),
32+ ..AppSpec::new("cast", (1440.0, 900.0), App::init, app::view)
3333 });
3434 }
@@ -34,7 +34,7 @@ fn named(name: &str) -> El {
3434 fn secret(edit: &TextEdit, hint: &str, k: &Kit, access: fn(&mut App) -> &mut TextEdit) -> El {
3535 input(edit, hint, access)
3636 .secure()
37- .width(Some(220.0))
37+ .width(Some(280.0))
3838 .on_change(|s: &mut App, _| s.save_settings())
3939 .build(k)
4040 }
@@ -51,7 +51,7 @@ pub fn default_agent(s: &App) -> El {
5151 row()
5252 .gap(8.0)
5353 .center_y()
54- .child(el().w(14.0))
54+ .child(el().w(18.0))
5555 .child(named("Default agent"))
5656 .child(agent_seg(s))
5757 }
@@ -74,7 +74,7 @@ pub fn credentials(s: &App, k: &Kit) -> El {
7474 |s| &mut s.settings.claude,
7575 ),
7676 };
77- let ok = |b: bool| mono(if b { "✓" } else { "○" }, if b { p.ok } else { p.muted }).w(14.0);
77+ let ok = |b: bool| mono(if b { "✓" } else { "○" }, if b { p.ok } else { p.muted }).w(18.0);
7878 col()
7979 .gap(8.0)
8080 .child(
@@ -123,7 +123,7 @@ pub fn view(s: &App, k: &Kit) -> El {
123123 "Opencode model",
124124 "Model for opencode runs",
125125 input(&s.settings.model, s.cfg.model(), |s| &mut s.settings.model)
126- .width(Some(220.0))
126+ .width(Some(280.0))
127127 .on_change(|s: &mut App, _| s.save_settings())
128128 .build(k),
129129 ));
@@ -155,19 +155,19 @@ pub fn view(s: &App, k: &Kit) -> El {
155155 "Mounted into the VM at /work",
156156 mono(shown(|w| &w.dir), p.fg)
157157 .truncate_middle()
158- .max_w(300.0),
158+ .max_w(360.0),
159159 ))
160160 .child(line(
161161 "Cast data",
162162 "Prompts, workflows and evidence, mounted at /cast",
163163 mono(shown(|w| &w.state), p.fg)
164164 .truncate_middle()
165- .max_w(300.0),
165+ .max_w(360.0),
166166 ));
167167 col()
168168 .padding(24.0)
169169 .gap(24.0)
170- .max_w(680.0)
170+ .max_w(820.0)
171171 .scroll(rune::ScrollSpec {
172172 stick_bottom: false,
173173 })
@@ -68,7 +68,7 @@ pub fn view(s: &App, k: &Kit) -> El {
6868 );
6969 let card = col()
7070 .key("setup-card")
71- .w(560.0)
71+ .w(680.0)
7272 .fill(p.surface)
7373 .radius(4.0)
7474 .clip_rounded(4.0)
@@ -47,12 +47,13 @@ pub fn pal() -> &'static Pal {
4747 })
4848 }
4949
50-pub const SMALL: TextStyle = TextStyle::new(11.0, 400.0).mono().lh(16.0);
51-pub const BODY: TextStyle = TextStyle::new(13.0, 400.0).lh(20.0);
52-pub const STRONG: TextStyle = TextStyle::new(13.0, 500.0).lh(20.0);
50+pub const SMALL: TextStyle = TextStyle::new(14.0, 400.0).mono().lh(20.0);
51+pub const BODY: TextStyle = TextStyle::new(16.0, 400.0).lh(24.0);
52+pub const STRONG: TextStyle = TextStyle::new(16.0, 500.0).lh(24.0);
5353 pub const MONO: TextStyle = BODY.mono();
54-pub const TITLE: TextStyle = TextStyle::new(16.0, 500.0).lh(24.0);
55-pub const DISPLAY: TextStyle = TextStyle::new(24.0, 500.0).mono().lh(28.0);
54+pub const TITLE: TextStyle = TextStyle::new(20.0, 500.0).lh(28.0);
55+pub const DISPLAY: TextStyle = TextStyle::new(30.0, 500.0).mono().lh(36.0);
56+pub const CONTROL: f32 = 28.0;
5657
5758 pub fn kit() -> Kit {
5859 let p = pal();
@@ -66,7 +67,7 @@ pub fn kit() -> Kit {
6667 k.ty = Type {
6768 ui: BODY,
6869 ui_medium: STRONG,
69- ui_compact: BODY.lh(16.0),
70+ ui_compact: BODY.lh(20.0),
7071 small: SMALL,
7172 small_medium: SMALL,
7273 body: BODY,
@@ -35,7 +35,7 @@ fn base(label: &str, kind: Kind) -> El {
3535 Kind::Ghost => (Color::TRANSPARENT, p.muted),
3636 };
3737 row()
38- .h(24.0)
38+ .h(theme::CONTROL)
3939 .px(8.0)
4040 .radius(4.0)
4141 .fill(fill)
@@ -78,7 +78,7 @@ pub fn tab(label: &str, on: bool) -> El {
7878
7979 pub fn ph(left: El, right: El) -> El {
8080 row()
81- .h(28.0)
81+ .h(32.0)
8282 .px(12.0)
8383 .fill(pal().surface)
8484 .center_y()
@@ -129,7 +129,7 @@ pub fn seg<T: Copy + PartialEq + 'static>(
129129 ) -> El {
130130 let p = pal();
131131 row()
132- .h(24.0)
132+ .h(theme::CONTROL)
133133 .radius(4.0)
134134 .border(1.0, p.line)
135135 .clip_rounded(4.0)
@@ -176,6 +176,6 @@ pub fn input(
176176 rune_kit::TextInput::new(edit)
177177 .placeholder(placeholder)
178178 .text_style(theme::BODY)
179- .height(24.0)
179+ .height(theme::CONTROL)
180180 .on_edit(access)
181181 }
@@ -4,9 +4,9 @@ use crate::ui::theme::{self, pal};
44 use crate::workflow::model::Workflow;
55 use rune::{Color, El, LineCap, Path, Shape, canvas, col, el, text};
66
7-const NW: f32 = 156.0;
8-const NH: f32 = 44.0;
9-const GX: f32 = 40.0;
7+const NW: f32 = 188.0;
8+const NH: f32 = 56.0;
9+const GX: f32 = 48.0;
1010 const GY: f32 = 12.0;
1111 const PAD: f32 = 8.0;
1212
@@ -88,7 +88,7 @@ pub fn view(s: &App, stem: &str, k: &Kit) -> El {
8888 .on_press(move |s: &mut App| s.open_review(&st, v))
8989 }));
9090 let mut stats = row()
91- .h(52.0)
91+ .h(64.0)
9292 .fill(p.surface)
9393 .child(stat(&steps.len().to_string(), "steps", p.strong))
9494 .child(stat(&wf.tasks.len().to_string(), "tasks", p.strong));
@@ -18,7 +18,7 @@ fn field(s: &App, stem: &str, f: Field, k: &Kit) -> El {
1818 let (a, b) = (stem.to_string(), stem.to_string());
1919 TextInput::new(edit)
2020 .text_style(theme::BODY)
21- .height(24.0)
21+ .height(theme::CONTROL)
2222 .width(None)
2323 .on_edit(move |s: &mut App| s.form_field(&a, f))
2424 .on_change(move |s: &mut App, _| s.form_changed(&b))
@@ -96,7 +96,7 @@ pub fn view(s: &App, stem: &str, k: &Kit) -> El {
9696 row()
9797 .gap(6.0)
9898 .center_y()
99- .child(field(s, stem, Field::Item(l, n), k).grow(1.0))
99+ .child(field(s, stem, Field::Item(l, n), k).grow(1.0).min_w(0.0))
100100 .child(link("✕", move |s: &mut App| s.form_remove(&st, l, n)).px(4.0))
101101 });
102102 let st = stem.to_string();
@@ -131,7 +131,7 @@ pub fn view(s: &App, stem: &str, k: &Kit) -> El {
131131 .child(mono(v, p.fg))
132132 };
133133 let order = col()
134- .w(220.0)
134+ .w(280.0)
135135 .h_full()
136136 .fill(p.surface)
137137 .child(ph(lbl("Workflow order"), row()))
@@ -49,7 +49,7 @@ pub fn view(s: &App) -> El {
4949 p.muted,
5050 ))
5151 });
52- let mut recent = col().w(500.0).gap(4.0);
52+ let mut recent = col().w(640.0).gap(4.0);
5353 if !s.cfg.recents.is_empty() {
5454 recent = recent
5555 .child(lbl("Recent directories").px(12.0))