header and footer colors, model.Constants
This commit is contained in:
Binary file not shown.
@@ -35,7 +35,7 @@ class ApplicationMain
|
|||||||
ManifestResources.init(config);
|
ManifestResources.init(config);
|
||||||
#end
|
#end
|
||||||
|
|
||||||
app.meta["build"] = "2";
|
app.meta["build"] = "3";
|
||||||
app.meta["company"] = "Nekotoro";
|
app.meta["company"] = "Nekotoro";
|
||||||
app.meta["file"] = "LPTCManager2026";
|
app.meta["file"] = "LPTCManager2026";
|
||||||
app.meta["name"] = "LPTCManager2026";
|
app.meta["name"] = "LPTCManager2026";
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import model.Constants;
|
||||||
import components.NekoRectangle;
|
import components.NekoRectangle;
|
||||||
import openfl.display.Shape;
|
import openfl.display.Shape;
|
||||||
import openfl.display.Graphics;
|
import openfl.display.Graphics;
|
||||||
@@ -27,9 +28,11 @@ class LPTCManager2026 extends Application {
|
|||||||
|
|
||||||
mainPanel = new Panel();
|
mainPanel = new Panel();
|
||||||
mainPanel.autoSizeMode = STAGE;
|
mainPanel.autoSizeMode = STAGE;
|
||||||
mainPanel.backgroundSkin = new NekoRectangle(0x93E9CB);
|
mainPanel.backgroundSkin = new NekoRectangle(Constants.MAIN_COLOR3);
|
||||||
|
|
||||||
var header = new LayoutGroup();
|
var header = new LayoutGroup();
|
||||||
|
header.autoSizeMode = CONTENT;
|
||||||
|
header.backgroundSkin = new NekoRectangle(Constants.HERO_COLOR, 0, 0, stage.stageWidth, Std.int(stage.stageHeight * 8 / 100));
|
||||||
header.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
header.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
||||||
header.layout = new AnchorLayout();
|
header.layout = new AnchorLayout();
|
||||||
|
|
||||||
@@ -42,6 +45,9 @@ class LPTCManager2026 extends Application {
|
|||||||
mainPanel.header = header;
|
mainPanel.header = header;
|
||||||
|
|
||||||
var footer = new LayoutGroup();
|
var footer = new LayoutGroup();
|
||||||
|
|
||||||
|
footer.autoSizeMode = CONTENT;
|
||||||
|
footer.backgroundSkin = new NekoRectangle(Constants.MAIN_COLOR2, 0, 0, stage.stageWidth, Std.int(stage.stageHeight * 10 / 100));
|
||||||
footer.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
footer.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
||||||
footer.layout = new AnchorLayout();
|
footer.layout = new AnchorLayout();
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package model;
|
||||||
|
|
||||||
|
class Constants {
|
||||||
|
|
||||||
|
public static final HERO_COLOR:Int = 0x050EB7;
|
||||||
|
public static final ACCENT_COLOR1:Int = 0xFF9F1C;
|
||||||
|
public static final ACCENT_COLOR2:Int = 0xFF5F0F ;
|
||||||
|
public static final MAIN_COLOR1:Int = 0x323D42;
|
||||||
|
public static final MAIN_COLOR2:Int = 0x69808A;
|
||||||
|
public static final MAIN_COLOR3:Int = 0xECEFF0;
|
||||||
|
|
||||||
|
private function new() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user