Skip to content

Conversation

@RedRafe
Copy link
Contributor

@RedRafe RedRafe commented Jan 26, 2026

Just a touch of restyling for our main GUIs of toolbar + file formatting to give every gui the same style/theme.
No logic changes.


Changes

  • unified frame styles with inner frames in all guis
  • replaced draggable frames with non_draggable_frames for center guis
  • added subheaders where needed
  • improved tooltips overall (localized tips, colors, fonts, shortcuts)
  • restyled buttons to make them easier to read
  • restyled some GUIs to be a copy of vanilla's
  • added some input sanitization where easily supported

Before/After of the changes

Before

Screenshot from 2026-01-26 17-31-42

After

Screenshot from 2026-01-26 15-47-44

Copy link
Collaborator

@grilledham grilledham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for cleaning up the code and updating the style etc.

Out of curiosity you mention in the PR that you "added some input sanitization where easily supported" but I couldn't spot what these changes were?

Comment on lines +73 to +75
numeric = true,
allow_decimal = false,
allow_negative = false,
Copy link
Contributor Author

@RedRafe RedRafe Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added native input sanitization for ammo count (the parsing logis was kept still, but this should give the user even more feedbacks as letters/commas cannot be used at all).
I havent checked if RedMew settings could use more of those but I havent heavily refactored that module (yet, dunno if it is needed) so maybe I'll come back to it in the future.
Next will be poll/player_list

Comment on lines +190 to +196
local function get_task_label_caption(task)
local caption = task.name
if #caption > label_max_length then
caption = caption:sub(1, label_max_length) .. ' [...]'
end
return table.concat { '#', task.task_id, ' ', caption }
end
Copy link
Contributor Author

@RedRafe RedRafe Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tasklist are capped at ~100 chars in the Tasks display list to prevent text flooding thee scroll pane.
The full text, editors, time of creation is now displayed for all tasks in their tooltip instead (which is cleaner)

Copy link
Contributor Author

@RedRafe RedRafe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left couple comments for ya @grilledham

@grilledham
Copy link
Collaborator

Left couple comments for ya @grilledham

Thanks, looks good.

@RedRafe RedRafe merged commit 593f57d into Refactorio:develop Jan 27, 2026
1 check passed
@RedRafe RedRafe deleted the updates/gui branch January 27, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants