Skip to content

Commit

Permalink
Some uncommitted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Iniquitatis committed May 23, 2021
1 parent e085995 commit 20e9b85
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Build
Mockup
Release
Release.zip
Source/comfy_ui/replacers/mod_assets/games/hangman/s1.png
Source/comfy_ui/replacers/mod_assets/games/hangman/s2.png
Source/gui/Unused
Temporary.svg
Unused
Expand Down
11 changes: 10 additions & 1 deletion Source/comfy_ui.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,16 @@ init -2 python in comfy_ui:
themes.append(_get_theme_info(os.path.join(meta_dir, file_path),
os.path.join(meta_dir, "%s_hidpi.arc" % file_name)))

themes.sort(cmp=lambda x, y: cmp(x["name"], y["name"]))
# FIXME: there should be a better way to put the Default theme above the others
def comparator(key):
name = key["name"]
if name == "Default":
return " %s" % name
elif name == "Classic":
return " %s" % name
return name

themes.sort(key=comparator)

def _get_theme_info(file_path, hidpi_path):
result = {
Expand Down
23 changes: 23 additions & 0 deletions Themes/Starry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "Starry",
"id": "starry",
"button_rounding": 3,
"frame_rounding": 3,
"dialogue_rounding": 10,
"menu_pattern_shape": "star",
"dialogue_pattern_shape": "star",
"main_font":
{
"regular": "comfy_ui/fonts/Nunito-SemiBold.ttf",
"italic": "comfy_ui/fonts/Nunito-SemiBoldItalic.ttf",
"bold": "comfy_ui/fonts/Nunito-Bold.ttf",
"bold_italic": "comfy_ui/fonts/Nunito-BoldItalic.ttf"
},
"menu_font": "gui/font/RifficFree-Bold.ttf",
"option_font": "gui/font/Halogen.ttf",
"main_font_kerning": 0.0,
"dialogue_vertical_offset": -3,
"dialogue_line_spacing": -1,
"primary_color": { "h": 60, "s": 0.82, "l": 0.03 },
"secondary_color": { "h": 60, "s": 1.05, "l": 0.02 }
}

0 comments on commit 20e9b85

Please sign in to comment.