Change name of hovered region style struct, reorder lines & export Appearance
This commit is contained in:
parent
99aa54cd88
commit
0cb84c1c4c
3 changed files with 19 additions and 19 deletions
|
|
@ -703,12 +703,12 @@ pub enum PaneGrid {
|
|||
impl pane_grid::StyleSheet for Theme {
|
||||
type Style = PaneGrid;
|
||||
|
||||
fn hovered_region(&self, style: &Self::Style) -> pane_grid::Region {
|
||||
fn hovered_region(&self, style: &Self::Style) -> pane_grid::Appearance {
|
||||
match style {
|
||||
PaneGrid::Default => {
|
||||
let palette = self.extended_palette();
|
||||
|
||||
pane_grid::Region {
|
||||
pane_grid::Appearance {
|
||||
background: Background::Color(Color {
|
||||
a: 0.5,
|
||||
..palette.primary.base.color
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue