Split Interactive into Interactive and Toggleable (#2628)
This is a part of the intensity driven theme rewrite.
It introduces the `toggle` and `interactive` helper functions to build
Toggle<T> and Interactive<T> styles for interactive elements in the
theme.
This PR also removes the `theme_testbench` crate and related actions.
Huge thanks to @osiewicz and @mikayla-maki for pushing this forward 🙏🏽
Release Notes:
- Updated the style of many interactive elements.
This commit is contained in:
commit
6ab0143469
80 changed files with 4074 additions and 1216 deletions
|
@ -100,7 +100,7 @@ impl View for DiagnosticIndicator {
|
|||
.workspace
|
||||
.status_bar
|
||||
.diagnostic_summary
|
||||
.style_for(state, false);
|
||||
.style_for(state);
|
||||
|
||||
let mut summary_row = Flex::row();
|
||||
if self.summary.error_count > 0 {
|
||||
|
@ -198,7 +198,7 @@ impl View for DiagnosticIndicator {
|
|||
MouseEventHandler::<Message, _>::new(1, cx, |state, _| {
|
||||
Label::new(
|
||||
diagnostic.message.split('\n').next().unwrap().to_string(),
|
||||
message_style.style_for(state, false).text.clone(),
|
||||
message_style.style_for(state).text.clone(),
|
||||
)
|
||||
.aligned()
|
||||
.contained()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue