Skip to content

Commit

Permalink
fix(colorpicker): fixes OOC and UI colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Filatelele authored Apr 5, 2024
1 parent 5064621 commit 8d7ff77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/client/preference_setup/global/01_ui.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

/datum/category_item/player_setup_item/player_global/ui/sanitize_preferences()
pref.UI_style = sanitize_inlist(pref.UI_style, GLOB.all_ui_styles, initial(pref.UI_style))
pref.UI_style_color = sanitize_hexcolor(pref.UI_style_color, initial(pref.UI_style_color))
pref.UI_style_color = sanitize_hexcolor(pref.UI_style_color, desired_format = 6, include_crunch = TRUE, default = initial(pref.UI_style_color))
pref.UI_style_alpha = sanitize_integer(pref.UI_style_alpha, 0, 255, initial(pref.UI_style_alpha))
pref.ooccolor = sanitize_hexcolor(pref.ooccolor, initial(pref.ooccolor))
pref.ooccolor = sanitize_hexcolor(pref.ooccolor, desired_format = 6, include_crunch = TRUE, default = initial(pref.ooccolor))
pref.clientfps = sanitize_integer(pref.clientfps, CLIENT_MIN_FPS, CLIENT_MAX_FPS, initial(pref.clientfps))

/datum/category_item/player_setup_item/player_global/ui/content(mob/user)
Expand Down

0 comments on commit 8d7ff77

Please sign in to comment.