- Buttons changed to ToggleButtons

This commit is contained in:
2025-11-21 16:08:18 +01:00
parent 8b8f0b9712
commit aeaa8ef8ff
7 changed files with 202 additions and 33 deletions
+6 -2
View File
@@ -1,9 +1,10 @@
package view;
import control.AppController;
import com.adobe.cairngorm.control.CairngormEvent;
import com.adobe.cairngorm.control.CairngormEventDispatcher;
import components.IconButton;
import components.NekoRectangle;
import control.AppController;
import feathers.controls.Button;
import feathers.controls.Label;
import feathers.controls.LayoutGroup;
@@ -51,7 +52,10 @@ class MainHeader extends LayoutGroup {
layout = l;
// Menu button
btn1 = new Button("menu", onMenuButtonPress);
var svgIconString:String = Assets.getText("vector/menu_icon_black.svg");
btn1 = new IconButton(svgIconString, Constants.MAIN_COLOR3);
btn1.addEventListener(TriggerEvent.TRIGGER, onMenuButtonPress);
addChild(btn1);
// Title label