Change name of hovered region style struct, reorder lines & export Appearance

This commit is contained in:
Joao Freitas 2023-05-17 15:30:35 +01:00
parent 99aa54cd88
commit 0cb84c1c4c
No known key found for this signature in database
GPG key ID: 4FAF61C62BC37389
3 changed files with 19 additions and 19 deletions

View file

@ -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