Skip to content
Snippets Groups Projects
Commit cd80a272 authored by Kali Kaneko's avatar Kali Kaneko
Browse files

fix drawer

parent b8d7f667
No related tags found
No related merge requests found
......@@ -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
......
......@@ -7,8 +7,14 @@ import QtQuick.Window 2.0
Rectangle {
id: panel
function show() { open = true; }
function hide() { open = false; }
function show() {
open = true;
drawerOn = true;
}
function hide() {
open = false;
drawerOn = false;
}
function toggle() {
open = open ? false : true;
drawerOn = open;
......@@ -93,6 +99,7 @@ Rectangle {
function handleClick(mouse) {
if ((_rightEdge && mouse.x < panel.x ) || mouse.x > panel.width) {
open = false;
drawerOn = false;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment