mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-15 08:03:04 +00:00
radial menu: make elements brighter on hover
This commit is contained in:
@@ -462,7 +462,7 @@ export class RadialMenu implements Layer {
|
||||
return;
|
||||
}
|
||||
|
||||
path.attr("filter", "url(#glow)");
|
||||
path.style("filter", "brightness(1.5)");
|
||||
};
|
||||
|
||||
const onMouseOut = (d: d3.PieArcDatum<MenuElement>, path: any) => {
|
||||
@@ -481,7 +481,7 @@ export class RadialMenu implements Layer {
|
||||
d.data.id === this.selectedItemId)
|
||||
)
|
||||
return;
|
||||
path.attr("filter", null);
|
||||
path.style("filter", null);
|
||||
const color = disabled
|
||||
? this.config.disabledColor
|
||||
: (resolveColor(d.data, this.params) ?? "#333333");
|
||||
|
||||
Reference in New Issue
Block a user