added a apply recommended graphics settings button to options

This commit is contained in:
aomizu
2025-06-14 14:28:50 +09:00
parent 68cfe61064
commit c0daa300bf
7 changed files with 263 additions and 1 deletions

View File

@@ -15,6 +15,9 @@ func showOptionsPopup() {
// Create options content with better organization and smaller titles
optionsTitle := widget.NewLabel("Options")
optionsTitle.TextStyle = fyne.TextStyle{Bold: true}
// Create label for recommended settings
recommendedSettingsLabel := widget.NewLabel("Graphics settings:")
gameOptionsContainer := container.NewVBox(
optionsTitle,
widget.NewSeparator(),
@@ -22,6 +25,8 @@ func showOptionsPopup() {
showTerminalCheckbox,
vanillaTweaksCheckbox,
widget.NewSeparator(),
container.NewBorder(nil, nil, recommendedSettingsLabel, container.NewHBox(applyRecommendedSettingsButton, recommendedSettingsHelpButton), nil),
widget.NewSeparator(),
container.NewBorder(nil, nil, nil, container.NewHBox(enableOptionAsAltButton, disableOptionAsAltButton), optionAsAltStatusLabel),
)