Skip to content

Commit

Permalink
Merge pull request #54 from MalpenZibo/fix-workspace-empty-text-color
Browse files Browse the repository at this point in the history
Fix text color in case of empty workspace
  • Loading branch information
MalpenZibo authored Oct 28, 2024
2 parents 0690d45 + 7bf7e8a commit 2098498
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,11 @@ impl button::StyleSheet for WorkspaceButtonStyle {
color: bg_color,
radius: 16.0.into(),
},
text_color: fg_color,
text_color: if self.0 {
style.extended_palette().background.weak.text
} else {
fg_color
},
..button::Appearance::default()
}
}
Expand Down

0 comments on commit 2098498

Please sign in to comment.