Compare commits

...
Author SHA1 Message Date
Martin BallandClaude Opus 5.5 0eda97fe8c #8811: the status bar's muted-ink override returns nothing
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 08:48:41 +00:00
Martin BallandClaude Sonnet 5.5 f9ff36d67c #8811: status bar page, word count and language read in the muted ink again
Cause: the craft-ui port drew the readouts in full ink; v0.19.1 used text_dim.
Fix: set AfterInk::Muted around the readouts; craft-libs now honours it on ghost buttons
(depends on the craft-libs PR, builds after the repin).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01FypgCXNomWeGUu3duixKdm
2026-12-05 04:26:00 +00:00
+12 -2
View File
@@ -9,10 +9,11 @@ use craft::theme::ControlSize;
use craft::theme::variant::Variant;
use craft::ui::bars::{Bar, BarKind};
use craft::ui::buttons::{Button, ButtonOutput, IconButton, ToggleButton};
use craft::ui::contract::{Bind, BodyCx, Gap, Props as _, Show as _, ShowContainer as _, TooltipSpec, Trigger};
use craft::ui::contract::{AfterInk, Bind, BodyCx, Gap, Props as _, Show as _, ShowContainer as _, TooltipSpec, Trigger};
use craft::ui::display::{Divider, Text};
use craft::ui::layout_components::Row;
use craft::ui::menu::{Menu, MenuItem};
use craft::ui::runtime::env::with_env;
use craft::ui::value_drag::{Slider, SliderScale};
use egui::Ui;
use serde_json::json;
@@ -45,7 +46,16 @@ pub(crate) fn show(ui: &mut Ui, _cx: &mut BodyCx<'_>, app: &mut WordApp) {
})
.show(ui, |ui, _| {
if let Ok(mut a) = app.try_borrow_mut() {
page.set(Some(readouts(&mut a, ui)));
// The readouts are secondary text, as v0.19.1 drew them (#8811): craft's ghost button takes the muted ink
// where it passes text contrast.
let rect = with_env(
ui,
|o| {
o.values.set(AfterInk::Muted);
},
|ui| readouts(&mut a, ui),
);
page.set(Some(rect));
}
});
if let (Some(page), Some(group), Ok(mut a)) = (page.get(), group.get(), app.try_borrow_mut()) {