diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-08 22:23:46 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-09 21:14:52 +0100 |
commit | 4fd7c1a92e3c16b300997e2cbd82ae3cdd6279ec (patch) | |
tree | 389bbf99489a5391e5b858bee30e05bff0727c61 /gui/components/MaterialButton.qml | |
parent | ca3f128194888e30aadc149eb40a1370931eb2eb (diff) |
[bug] alternative drawer implementation
this is an attempt to solve the problem we're having with snaps, in
which Overlays are not correctly displayed.
Diffstat (limited to 'gui/components/MaterialButton.qml')
-rw-r--r-- | gui/components/MaterialButton.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/components/MaterialButton.qml b/gui/components/MaterialButton.qml index 8e90e94..ad1ca59 100644 --- a/gui/components/MaterialButton.qml +++ b/gui/components/MaterialButton.qml @@ -49,7 +49,7 @@ T.Button { radius: 4 border.color: "black" - border.width: 1 + border.width: 2 color: !control.enabled ? control.Material.buttonDisabledColor : control.highlighted ? control.Material.highlightedButtonColor : Theme.buttonColor PaddedRectangle { @@ -67,10 +67,13 @@ T.Button { // The layer is disabled when the button color is transparent so you can do // Material.background: "transparent" and get a proper flat button without needing // to set Material.elevation as well - layer.enabled: control.enabled && control.Material.buttonColor.a > 0 + layer.enabled: true // control.enabled && control.Material.buttonColor.a > 0 + + /* layer.effect: ElevationEffect { elevation: control.Material.elevation } + */ Ripple { clipRadius: 2 |