From 28c36c699ad084524f427e1059d3b45687b3b7d3 Mon Sep 17 00:00:00 2001 From: nekotoro Date: Wed, 19 Nov 2025 13:36:53 +0100 Subject: [PATCH] drawer button size --- src/components/NekoIconButton.hx | 2 -- src/view/MainHeader.hx | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/NekoIconButton.hx b/src/components/NekoIconButton.hx index dc02a9d..65b93b5 100644 --- a/src/components/NekoIconButton.hx +++ b/src/components/NekoIconButton.hx @@ -18,7 +18,5 @@ class NekoIconButton extends Button{ bmp.width = pWidth; bmp.height = pHeight; bmp.smoothing = true; - traceYellow(pWidth + " / " + pHeight); - } } \ No newline at end of file diff --git a/src/view/MainHeader.hx b/src/view/MainHeader.hx index 3fc4552..93defb2 100644 --- a/src/view/MainHeader.hx +++ b/src/view/MainHeader.hx @@ -53,7 +53,7 @@ class MainHeader extends LayoutGroup { layout = l; // Drawer button - drawerBtn = new NekoIconButton(Assets.getBitmapData("bitmaps/menu_white.png"), 0, 0, Std.int(headerHeight), Std.int(headerHeight)); + drawerBtn = new NekoIconButton(Assets.getBitmapData("bitmaps/menu_white.png"), 0, 0, Std.int(headerHeight * .5), Std.int(headerHeight * .5)); drawerBtn.addEventListener(TriggerEvent.TRIGGER, onDBtnPress); addChild(drawerBtn);