Rebrand app as RanaZe Step 3 Trainer
This commit is contained in:
@@ -3,9 +3,9 @@ extends RefCounted
|
||||
const DEEP_NAVY := Color("0b1324")
|
||||
const ROYAL_BLUE := Color("2563eb")
|
||||
const SKY_BLUE := Color("38bdf8")
|
||||
const PURPLE := Color("7c3aed")
|
||||
const MAGENTA := Color("d946ef")
|
||||
const TEAL := Color("14b8a6")
|
||||
const PURPLE := Color("1d4ed8")
|
||||
const MAGENTA := Color("ef4444")
|
||||
const TEAL := Color("38bdf8")
|
||||
const SUCCESS := Color("22c55e")
|
||||
const AMBER := Color("f59e0b")
|
||||
const SUN_ICON := preload("res://assets/icons/lucide/sun.svg")
|
||||
@@ -22,6 +22,13 @@ const LIGHT_MUTED := Color("64748b")
|
||||
static var font: Font = preload("res://assets/fonts/Inter-Variable.ttf")
|
||||
|
||||
|
||||
static func ranaze_mark_texture() -> AtlasTexture:
|
||||
var texture := AtlasTexture.new()
|
||||
texture.atlas = preload("res://assets/branding/ranaze-mark.png")
|
||||
texture.region = Rect2(400, 150, 736, 736)
|
||||
return texture
|
||||
|
||||
|
||||
static func text_color(dark: bool) -> Color:
|
||||
return DARK_TEXT if dark else LIGHT_TEXT
|
||||
|
||||
@@ -45,8 +52,8 @@ void fragment() {
|
||||
vec3 base = dark_mode ? vec3(0.018, 0.043, 0.090) : vec3(0.965, 0.975, 0.990);
|
||||
float left_glow = 1.0 - smoothstep(0.0, 0.58, distance(uv, vec2(-0.02, 0.12)));
|
||||
float right_glow = 1.0 - smoothstep(0.0, 0.58, distance(uv, vec2(1.02, 0.92)));
|
||||
vec3 blue = dark_mode ? vec3(0.075, 0.055, 0.35) : vec3(0.70, 0.80, 1.0);
|
||||
vec3 purple = dark_mode ? vec3(0.18, 0.035, 0.52) : vec3(0.86, 0.78, 1.0);
|
||||
vec3 blue = dark_mode ? vec3(0.035, 0.16, 0.42) : vec3(0.70, 0.84, 1.0);
|
||||
vec3 purple = dark_mode ? vec3(0.02, 0.28, 0.55) : vec3(0.76, 0.90, 1.0);
|
||||
vec3 color = base + blue * left_glow * (dark_mode ? 0.55 : 0.28);
|
||||
color += purple * right_glow * (dark_mode ? 0.62 : 0.12);
|
||||
COLOR = vec4(color, 1.0);
|
||||
@@ -155,7 +162,7 @@ static func badge_box(dark: bool, accent: Color) -> StyleBoxFlat:
|
||||
|
||||
static func gradient_button_box() -> StyleBoxTexture:
|
||||
var gradient := Gradient.new()
|
||||
gradient.colors = PackedColorArray([Color("1677ff"), Color("8f3ff4")])
|
||||
gradient.colors = PackedColorArray([ROYAL_BLUE, SKY_BLUE])
|
||||
var texture := GradientTexture2D.new()
|
||||
texture.gradient = gradient
|
||||
texture.width = 512
|
||||
|
||||
Reference in New Issue
Block a user