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>
@@ -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
};7
use gpui_kit::component::native_menu::NativeMenu;7
use gpui_kit::component::native_menu::NativeMenu;8
use gpui_kit::component::{Sizable as _, h_flex, v_flex};8
use gpui_kit::component::{Sizable as _, h_flex, v_flex};9
use gpui_kit::prelude::FluentBuilder as _;10
use gpui_kit::*;9
use gpui_kit::*;11
use teams_core::{Cell, PICKER_COLUMNS, PICKER_ROWS, TABLE_MARK, Table, TableEdit};10
use 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() {