Improvements

* Skip back layers during icon crop calculations
* Improve contrast for selected text
This commit is contained in:
LoafyLemon 2024-10-18 20:28:12 +01:00
parent 65690ca90c
commit e8ece0c775
2 changed files with 3 additions and 2 deletions

View File

@ -182,7 +182,7 @@ init python:
matrix = SaturationMatrix(0.0) matrix = SaturationMatrix(0.0)
sprites = [i for i in self.build_image(hash, matrix=matrix) if not i[0] == "mask"] sprites = [i for i in self.build_image(hash, matrix=matrix) if not i[0] == "mask"]
icon_sprite = Fixed(*[i[1] for i in sprites], fit_first=True) icon_sprite = Fixed(*[i[1] for i in sprites if not "_back_" in i[0]], fit_first=True)
sprites.extend(self.char.body.build_image(self.char.body._hash, matrix=matrix)) sprites.extend(self.char.body.build_image(self.char.body._hash, matrix=matrix))
sprites.sort(key=itemgetter(2)) sprites.sort(key=itemgetter(2))

View File

@ -360,8 +360,9 @@ style choice_button_disabled is choice_button:
) )
style choice_text: style choice_text:
color "#dddddd" color "#cccccc"
hover_color "#ffffff" hover_color "#ffffff"
selected_color "#EA8D60"
outlines [(1, "#000000", 1, 2), (1, "#000000", 0, 1), (1, "#000000", 0, 0)] outlines [(1, "#000000", 1, 2), (1, "#000000", 0, 1), (1, "#000000", 0, 0)]
hinting "bytecode" hinting "bytecode"
size 32 size 32