BlueGit

ict rusty-teams

fix(chat): give quotes a darker fill so they stand out from the bubble

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-08 · 7 weeks ago

Hash
5ee37583373798307bbd8a8c7495e18760afa79a
Parent
6902307d
2 files changed +9 −0
crates/app/src/render/elements.rs +4 −0
@@ -51,6 +51,8 @@ fn render_block(block: &Block, id: String, own: bool, depth: usize, cx: &App) ->
51 51 .py(px(3.))
52 52 .border_l(px(3.))
53 53 .border_color(theme::accent())
54 .rounded_r(px(4.))
55 .bg(theme::quote_fill())
54 56 .text_size(px(12.5))
55 57 .text_color(theme::text_muted())
56 58 .child(render_block_list(children, &id, own, depth, cx))
@@ -61,6 +63,8 @@ fn render_block(block: &Block, id: String, own: bool, depth: usize, cx: &App) ->
61 63 .py(px(2.))
62 64 .border_l(px(3.))
63 65 .border_color(theme::border_strong())
66 .rounded_r(px(4.))
67 .bg(theme::quote_fill())
64 68 .text_color(theme::text_soft())
65 69 .child(render_block_list(children, &id, own, depth, cx))
66 70 .into_any_element(),
@@ -51,6 +51,8 @@ fn render_block(block: &Block, id: String, own: bool, depth: usize, cx: &App) ->
51 .py(px(3.))
51 .py(px(3.))
52 .border_l(px(3.))
52 .border_l(px(3.))
53 .border_color(theme::accent())
53 .border_color(theme::accent())
54 .rounded_r(px(4.))
55 .bg(theme::quote_fill())
54 .text_size(px(12.5))
56 .text_size(px(12.5))
55 .text_color(theme::text_muted())
57 .text_color(theme::text_muted())
56 .child(render_block_list(children, &id, own, depth, cx))
58 .child(render_block_list(children, &id, own, depth, cx))
@@ -61,6 +63,8 @@ fn render_block(block: &Block, id: String, own: bool, depth: usize, cx: &App) ->
61 .py(px(2.))
63 .py(px(2.))
62 .border_l(px(3.))
64 .border_l(px(3.))
63 .border_color(theme::border_strong())
65 .border_color(theme::border_strong())
66 .rounded_r(px(4.))
67 .bg(theme::quote_fill())
64 .text_color(theme::text_soft())
68 .text_color(theme::text_soft())
65 .child(render_block_list(children, &id, own, depth, cx))
69 .child(render_block_list(children, &id, own, depth, cx))
66 .into_any_element(),
70 .into_any_element(),
crates/app/src/theme.rs +5 −0
@@ -42,6 +42,7 @@ const CODE_SURFACE: u32 = 0x0000003d;
42 42 const CODE_HEADER_BORDER: u32 = 0xffffff0f;
43 43 const INLINE_CODE_FILL: u32 = 0xffffff14;
44 44 const INLINE_CODE_FILL_OWN: u32 = 0x0000003d;
45 const QUOTE_FILL: u32 = 0x00000052;
45 46 const INLINE_CODE_BORDER: u32 = 0xffffff1a;
46 47 const TABLE_HEADER: u32 = 0xffffff0d;
47 48 const RULE_OWN: u32 = 0x6a3a25;
@@ -260,6 +261,10 @@ pub fn inline_code_fill(own: bool) -> Hsla {
260 261 })
261 262 }
262 263
264 pub fn quote_fill() -> Hsla {
265 color_with_alpha(QUOTE_FILL)
266 }
267
263 268 pub fn inline_code_border() -> Hsla {
264 269 color_with_alpha(INLINE_CODE_BORDER)
265 270 }
@@ -42,6 +42,7 @@ const CODE_SURFACE: u32 = 0x0000003d;
42const CODE_HEADER_BORDER: u32 = 0xffffff0f;
42const CODE_HEADER_BORDER: u32 = 0xffffff0f;
43const INLINE_CODE_FILL: u32 = 0xffffff14;
43const INLINE_CODE_FILL: u32 = 0xffffff14;
44const INLINE_CODE_FILL_OWN: u32 = 0x0000003d;
44const INLINE_CODE_FILL_OWN: u32 = 0x0000003d;
45const QUOTE_FILL: u32 = 0x00000052;
45const INLINE_CODE_BORDER: u32 = 0xffffff1a;
46const INLINE_CODE_BORDER: u32 = 0xffffff1a;
46const TABLE_HEADER: u32 = 0xffffff0d;
47const TABLE_HEADER: u32 = 0xffffff0d;
47const RULE_OWN: u32 = 0x6a3a25;
48const RULE_OWN: u32 = 0x6a3a25;
@@ -260,6 +261,10 @@ pub fn inline_code_fill(own: bool) -> Hsla {
260 })
261 })
261}
262}
262
263
264pub fn quote_fill() -> Hsla {
265 color_with_alpha(QUOTE_FILL)
266}
267
263pub fn inline_code_border() -> Hsla {
268pub fn inline_code_border() -> Hsla {
264 color_with_alpha(INLINE_CODE_BORDER)
269 color_with_alpha(INLINE_CODE_BORDER)
265}
270}