Compare commits

...
Author SHA1 Message Date
Ratdoku Builder c91586b4a1 chore(release): v0.5.3-alpha
Bump version name to 0.5.3 and Android version code to 11. Document the icon sharpness fix.
2026-12-02 23:24:05 -06:00
Ratdoku Builder 7abd1226cb fix(ui): sharpen round-button icons
Import icon SVGs at 120px intrinsic size, expand them in round buttons with content margins preserving the original visual size, and assert icon resolution in QA.
2026-12-02 23:24:03 -06:00
22 changed files with 94 additions and 44 deletions

No files matched your search

+7
View File
@@ -2,6 +2,13 @@
All notable alpha milestones for Ratdoku. All notable alpha milestones for Ratdoku.
## v0.5.3-alpha — Crisp Icons
- Icon SVGs now import at 120px intrinsic size instead of 24px, so buttons stay sharp on high-density phones.
- Round buttons expand the high-res icon and use content margins to keep the original visual icon size.
- Added QA that checks every icon texture is at least 96px and that round buttons use expansion and margins.
- Android debug APK rebuilt at version `0.5.3` (version code 11).
## v0.5.2-alpha — Clean Slate ## v0.5.2-alpha — Clean Slate
- Replaced the native reset/restart dialog with a themed in-app confirmation card: cream panel, Fredoka heading, wrapped body, and full-width Cancel / destructive action buttons. - Replaced the native reset/restart dialog with a themed in-app confirmation card: cream panel, Fredoka heading, wrapped body, and full-width Cancel / destructive action buttons.
+8 -7
View File
@@ -146,12 +146,12 @@ build/Ratdoku.apk
It is a **debug-signed, arm64-v8a** APK: It is a **debug-signed, arm64-v8a** APK:
- Package: `com.ratdoku.game` - Package: `com.ratdoku.game`
- Version: `0.5.2` (version code 10) - Version: `0.5.3` (version code 11)
- Min SDK: 24 (Android 7.0) - Min SDK: 24 (Android 7.0)
- Target SDK: 36 - Target SDK: 36
- Size: about 41 MB - Size: about 41 MB
- Portrait orientation - Portrait orientation
- Build label: `v0.5.2-alpha · build 2026-12-02` - Build label: `v0.5.3-alpha · build 2026-12-02`
To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging: To install, copy the APK to the phone, open it, and allow “Install unknown apps” for the file manager/browser. Or with a USB-connected phone and USB debugging:
@@ -200,7 +200,7 @@ Run the whole QA suite (class scan, every test script, log-error scan, optional
## Versioning and releases ## Versioning and releases
The current development build is **v0.5.2-alpha** (“Clean Slate”) with the build label on Home and in Settings. The current development build is **v0.5.3-alpha** (“Crisp Icons”) with the build label on Home and in Settings.
Gitea repository: Gitea repository:
@@ -218,14 +218,15 @@ Alpha releases (all marked prerelease, each with a debug APK and source archive)
- **v0.5.0-alpha** — daily room with streaks, Profile screen, and selectable profile frames - **v0.5.0-alpha** — daily room with streaks, Profile screen, and selectable profile frames
- **v0.5.1-alpha** — profile frame selection crash fix, QA suites, and log-guarded test runner - **v0.5.1-alpha** — profile frame selection crash fix, QA suites, and log-guarded test runner
- **v0.5.2-alpha** — themed reset/restart confirmation and no Godot boot splash - **v0.5.2-alpha** — themed reset/restart confirmation and no Godot boot splash
- **v0.5.3-alpha** — high-resolution UI icons that stay sharp on high-density screens
https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.2-alpha https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/tag/v0.5.3-alpha
The v0.5.2-alpha APK is also at: The v0.5.3-alpha APK is also at:
`https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.2-alpha/Ratdoku-v0.5.2-alpha.apk` `https://gitea.nyxara.cc/Ahri-the-Vastaya/Ratdoku/releases/download/v0.5.3-alpha/Ratdoku-v0.5.3-alpha.apk`
`redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.2-alpha`. `redesign-360` is the branch with the current 360dp work; it is tagged `v0.5.3-alpha`.
The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`). The version is set in three places: `project.godot` (`config/version`), `scripts/Version.gd` (display label), and `export_presets.cfg` (`version/name`, `version/code`).
+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 264 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 317 B

After

Width:  |  Height:  |  Size: 319 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 393 B

After

Width:  |  Height:  |  Size: 395 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 402 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 238 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 660 B

After

Width:  |  Height:  |  Size: 662 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 316 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 356 B

After

Width:  |  Height:  |  Size: 358 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 414 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 373 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 420 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 297 B

After

Width:  |  Height:  |  Size: 299 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 586 B

After

Width:  |  Height:  |  Size: 588 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 578 B

After

Width:  |  Height:  |  Size: 580 B

+2 -2
View File
@@ -1,7 +1,7 @@
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
width="24" width="120"
height="24" height="120"
viewBox="0 0 24 24" viewBox="0 0 24 24"
fill="none" fill="none"
stroke="currentColor" stroke="currentColor"

Before

Width:  |  Height:  |  Size: 309 B

After

Width:  |  Height:  |  Size: 311 B

+2 -2
View File
@@ -32,8 +32,8 @@ architectures/armeabi-v7a=false
architectures/arm64-v8a=true architectures/arm64-v8a=true
architectures/x86=false architectures/x86=false
architectures/x86_64=false architectures/x86_64=false
version/code=10 version/code=11
version/name="0.5.2" version/name="0.5.3"
package/unique_name="com.ratdoku.game" package/unique_name="com.ratdoku.game"
package/name="Ratdoku" package/name="Ratdoku"
package/signed=true package/signed=true
+1 -1
View File
@@ -12,7 +12,7 @@ config_version=5
config/name="Ratdoku" config/name="Ratdoku"
run/main_scene="res://scenes/Main.tscn" run/main_scene="res://scenes/Main.tscn"
config/version="0.5.2-alpha" config/version="0.5.3-alpha"
config/features=PackedStringArray("4.7", "GL Compatibility") config/features=PackedStringArray("4.7", "GL Compatibility")
config/icon="res://icon.png" config/icon="res://icon.png"
boot_splash/show_image=false boot_splash/show_image=false
+7 -1
View File
@@ -86,7 +86,7 @@ static func round_button(icon_path: String, size: int = 48) -> Button:
var b := Button.new() var b := Button.new()
b.custom_minimum_size = Vector2(size, size) b.custom_minimum_size = Vector2(size, size)
b.icon = load(icon_path) b.icon = load(icon_path)
b.expand_icon = false b.expand_icon = true
b.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER b.icon_alignment = HORIZONTAL_ALIGNMENT_CENTER
b.alignment = HORIZONTAL_ALIGNMENT_CENTER b.alignment = HORIZONTAL_ALIGNMENT_CENTER
b.add_theme_stylebox_override("normal", _round_style(Palette.PAPER)) b.add_theme_stylebox_override("normal", _round_style(Palette.PAPER))
@@ -186,6 +186,12 @@ static func _round_style(color: Color) -> StyleBoxFlat:
s.corner_radius_top_right = 26 s.corner_radius_top_right = 26
s.corner_radius_bottom_left = 26 s.corner_radius_bottom_left = 26
s.corner_radius_bottom_right = 26 s.corner_radius_bottom_right = 26
# Keep high-resolution icons near their original visual size inside the
# round button instead of letting expand_icon fill the whole control.
s.content_margin_left = 10
s.content_margin_right = 10
s.content_margin_top = 10
s.content_margin_bottom = 10
s.shadow_color = Color(0.29, 0.20, 0.14, 0.12) s.shadow_color = Color(0.29, 0.20, 0.14, 0.12)
s.shadow_size = 4 s.shadow_size = 4
s.shadow_offset = Vector2(0, 2) s.shadow_offset = Vector2(0, 2)
+3 -3
View File
@@ -1,7 +1,7 @@
class_name Version class_name Version
extends RefCounted extends RefCounted
const NUMBER := "0.5.2-alpha" const NUMBER := "0.5.3-alpha"
const CODENAME := "Clean Slate" const CODENAME := "Crisp Icons"
const BUILD_DATE := "2026-12-02" const BUILD_DATE := "2026-12-02"
const BUILD_LABEL := "v0.5.2-alpha · build 2026-12-02" const BUILD_LABEL := "v0.5.3-alpha · build 2026-12-02"
+36
View File
@@ -43,11 +43,47 @@ func _run() -> void:
_test_daily(save) _test_daily(save)
_test_frames(save) _test_frames(save)
_test_game_data(save) _test_game_data(save)
_test_icons()
_reset_to_clean(save) _reset_to_clean(save)
_finish() _finish()
func _test_icons() -> void:
_note("5. icon assets")
# Load at runtime so UI.gd does not compile before the autoload exists.
var ui_script = load("res://scripts/UI.gd")
_check(ui_script != null, "UI script missing")
if ui_script == null:
return
var dir := DirAccess.open("res://assets/icons")
_check(dir != null, "icons directory missing")
if dir == null:
return
var count := 0
for file in dir.get_files():
if not file.ends_with(".svg"):
continue
count += 1
var texture = load("res://assets/icons/" + file)
_check(texture != null, "icon failed to load: %s" % file)
if texture != null:
var size: Vector2 = texture.get_size()
_check(size.x >= 96 and size.y >= 96, "icon too small: %s (%dx%d)" % [file, size.x, size.y])
_check(count >= 10, "expected the full icon set")
var button = ui_script.round_button("res://assets/icons/arrow-left.svg", 44)
_check(button.expand_icon, "round buttons should expand high-res icons")
var style := button.get_theme_stylebox("normal") as StyleBoxFlat
_check(style != null and style.content_margin_left >= 8, "round buttons should use margins to keep icon size")
var small_icon = ui_script.icon("res://assets/icons/settings.svg", 18)
_check(small_icon.texture.get_size().x >= 96, "UI.icon should use high-res textures")
button.free()
small_icon.free()
func _finish() -> void: func _finish() -> void:
if failures == 0: if failures == 0:
print("QA CORE: PASS") print("QA CORE: PASS")