BlueGit

ict rusty-teams

fix(composer): table size picker squares as soft fills

- surfaces_are_soft flagged the outlined squares after the merge with the composer tables

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

metis Daniel Däschle · pushed by metis

Authored 2026-10-17 · 6 weeks ago

Hash
115cf4ebcf308e7a14cd60633cbb0fae6b0977c9
Parent
6df273f2
1 file changed +2 −5
crates/app/src/views/composer/table.rs +2 −5
@@ -6,7 +6,6 @@ use gpui_kit::component::input::{
6 6 };
7 7 use gpui_kit::component::native_menu::NativeMenu;
8 8 use gpui_kit::component::{Sizable as _, h_flex, v_flex};
9 use gpui_kit::prelude::FluentBuilder as _;
10 9 use gpui_kit::*;
11 10 use teams_core::{Cell, PICKER_COLUMNS, PICKER_ROWS, TABLE_MARK, Table, TableEdit};
12 11
@@ -502,13 +501,11 @@ impl Composer {
502 501 .id(ElementId::Name(format!("table-size-{row}-{column}").into()))
503 502 .size(px(PICKER_SQUARE))
504 503 .rounded(px(2.))
505 .border_1()
506 .border_color(if covered {
507 theme::accent()
504 .bg(if covered {
505 theme::accent().opacity(0.6)
508 506 } else {
509 507 theme::border_strong()
510 508 })
511 .when(covered, |square| square.bg(theme::accent().opacity(0.25)))
512 509 .cursor_pointer()
513 510 .on_hover(cx.listener(move |this, hovered: &bool, _, cx| {
514 511 if *hovered && let Some(picker) = this.table_picker.as_mut() {
@@ -6,7 +6,6 @@ use gpui_kit::component::input::{
6};
6};
7use gpui_kit::component::native_menu::NativeMenu;
7use gpui_kit::component::native_menu::NativeMenu;
8use gpui_kit::component::{Sizable as _, h_flex, v_flex};
8use gpui_kit::component::{Sizable as _, h_flex, v_flex};
9use gpui_kit::prelude::FluentBuilder as _;
10use gpui_kit::*;
9use gpui_kit::*;
11use teams_core::{Cell, PICKER_COLUMNS, PICKER_ROWS, TABLE_MARK, Table, TableEdit};
10use teams_core::{Cell, PICKER_COLUMNS, PICKER_ROWS, TABLE_MARK, Table, TableEdit};
12
11
@@ -502,13 +501,11 @@ impl Composer {
502 .id(ElementId::Name(format!("table-size-{row}-{column}").into()))
501 .id(ElementId::Name(format!("table-size-{row}-{column}").into()))
503 .size(px(PICKER_SQUARE))
502 .size(px(PICKER_SQUARE))
504 .rounded(px(2.))
503 .rounded(px(2.))
505 .border_1()
504 .bg(if covered {
506 .border_color(if covered {
505 theme::accent().opacity(0.6)
507 theme::accent()
508 } else {
506 } else {
509 theme::border_strong()
507 theme::border_strong()
510 })
508 })
511 .when(covered, |square| square.bg(theme::accent().opacity(0.25)))
512 .cursor_pointer()
509 .cursor_pointer()
513 .on_hover(cx.listener(move |this, hovered: &bool, _, cx| {
510 .on_hover(cx.listener(move |this, hovered: &bool, _, cx| {
514 if *hovered && let Some(picker) = this.table_picker.as_mut() {
511 if *hovered && let Some(picker) = this.table_picker.as_mut() {