mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 06:43:55 +00:00
Added nickname to initial setup settings, make terms and initial setup accept buttons blue (call-to-action styled)
This commit is contained in:
@@ -13,40 +13,46 @@ module W3DHubLauncher
|
|||||||
stack(width: 1.0, fill: true, padding: PADDING) do
|
stack(width: 1.0, fill: true, padding: PADDING) do
|
||||||
stack(width: 1.0, fill: true, scroll: true) do
|
stack(width: 1.0, fill: true, scroll: true) do
|
||||||
title "Initial Setup"
|
title "Initial Setup"
|
||||||
caption "Please confirm launcher's default settings and make any desired tweaks.", font: FONT_REGULAR
|
caption "Please confirm launcher's default settings and make any desired adjustments. These can be changed in the launcher settings later.", font: FONT_REGULAR, margin_left: PADDING
|
||||||
|
|
||||||
|
flow(width: 1.0, height: 40, margin_top: PADDING) do
|
||||||
|
tagline "Nickname", height: 1.0, text_v_align: :center
|
||||||
|
edit_line Etc.getlogin, fill: true
|
||||||
|
end
|
||||||
|
inscription "Nickname to use when joining servers.", margin_left: PADDING
|
||||||
|
|
||||||
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
||||||
tagline "Launcher package cache directory", height: 1.0, text_v_align: :center
|
tagline "Launcher package cache directory", height: 1.0, text_v_align: :center
|
||||||
edit_line DEFAULT_PACKAGE_CACHE_PATH, fill: true
|
edit_line DEFAULT_PACKAGE_CACHE_PATH, fill: true
|
||||||
button "Browse..."
|
button "Browse..."
|
||||||
end
|
end
|
||||||
inscription "Location where the launcher will download application packages."
|
inscription "Location where the launcher will download application packages.", margin_left: PADDING
|
||||||
|
|
||||||
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
||||||
tagline "Application installation directory", height: 1.0, text_v_align: :center
|
tagline "Application installation directory", height: 1.0, text_v_align: :center
|
||||||
edit_line DEFAULT_APPLICATIONS_PATH, fill: true
|
edit_line DEFAULT_APPLICATIONS_PATH, fill: true
|
||||||
button "Browse..."
|
button "Browse..."
|
||||||
end
|
end
|
||||||
inscription "Location where the launcher will install new applications."
|
inscription "Location where the launcher will install new applications.", margin_left: PADDING
|
||||||
|
|
||||||
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
||||||
tagline "Wine context", height: 1.0, text_v_align: :center
|
tagline "Wine context", height: 1.0, text_v_align: :center
|
||||||
edit_line "", fill: true
|
edit_line "", fill: true
|
||||||
button "Browse..."
|
button "Browse..."
|
||||||
end
|
end
|
||||||
inscription "Location of wine context to use. Leave blank to use default."
|
inscription "Location of wine context to use. Leave blank to use default.", margin_left: PADDING
|
||||||
|
|
||||||
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
flow(width: 1.0, height: 40, margin_top: HALF_PADDING) do
|
||||||
tagline "Wine command", height: 1.0, text_v_align: :center
|
tagline "Wine command", height: 1.0, text_v_align: :center
|
||||||
edit_line "wine", fill: true
|
edit_line "wine", fill: true
|
||||||
button "Browse..."
|
button "Browse..."
|
||||||
end
|
end
|
||||||
inscription "Path to wine executable. Use `wine` for system installed wine."
|
inscription "Path to wine executable. Use <c=f80>wine</c> for system installed wine.", margin_left: PADDING
|
||||||
end
|
end
|
||||||
|
|
||||||
flow(width: 1.0, padding_top: PADDING) do
|
flow(width: 1.0, padding_top: PADDING) do
|
||||||
flow(fill: true)
|
flow(fill: true)
|
||||||
button "Accept" do |btn|
|
button "Accept", **CTA_BUTTON_THEME do |btn|
|
||||||
btn.enabled = false
|
btn.enabled = false
|
||||||
|
|
||||||
Worker::Api.update_settings({}) do |result|
|
Worker::Api.update_settings({}) do |result|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ module W3DHubLauncher
|
|||||||
window.close
|
window.close
|
||||||
end
|
end
|
||||||
|
|
||||||
button "Accept" do
|
button "Accept", **CTA_BUTTON_THEME do
|
||||||
page(Page::Boot::InitialSetup)
|
page(Page::Boot::InitialSetup)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user