mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-11-03 16:44:05 +00:00
Stub asterisk direct connect
This commit is contained in:
29
lib/dialogs/asterisk.rb
Normal file
29
lib/dialogs/asterisk.rb
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
module W3DHubLauncher
|
||||||
|
class Dialog
|
||||||
|
class Asterisk < W3DHubLauncher::Dialog
|
||||||
|
def setup
|
||||||
|
super
|
||||||
|
|
||||||
|
stack(width: 1.0, max_width: 600, height: 1.0, max_height: 600, style_class: [:dialog]) do
|
||||||
|
flow(width: 1.0, background_nine_slice: NINE_SLICE_ROUNDED_TOP, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: 0) do
|
||||||
|
banner "Direct Connect", width: 1.0, text_align: :center
|
||||||
|
end
|
||||||
|
|
||||||
|
stack(style_class: [:dialog_container]) do
|
||||||
|
banner "Coming soon!"
|
||||||
|
end
|
||||||
|
|
||||||
|
flow(width: 1.0, padding: PADDING, background_nine_slice: NINE_SLICE_ROUNDED_BOTTOM, background_nine_slice_from_edge: NINE_SLICE_EDGE, background_nine_slice_color: 0) do
|
||||||
|
flow(fill: true)
|
||||||
|
|
||||||
|
button "Close", **CTA_BUTTON_THEME do
|
||||||
|
pop_state
|
||||||
|
end
|
||||||
|
|
||||||
|
flow(fill: true)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
0
lib/dialogs/asterisk/.gitkeep
Normal file
0
lib/dialogs/asterisk/.gitkeep
Normal file
@@ -45,8 +45,8 @@ module W3DHubLauncher
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
button(safe_get_image("#{ROOT_PATH}/media/icons/target.png"), image_height: 1.0, tip: "Direct Connect", padding: HALF_PADDING, enabled: false, margin_left: PADDING) do
|
button(safe_get_image("#{ROOT_PATH}/media/icons/target.png"), image_height: 1.0, tip: "Direct Connect", padding: HALF_PADDING, margin_left: PADDING) do
|
||||||
dialog(Dialog::DirectConnect)
|
dialog(Dialog::Asterisk)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ require_relative "lib/dialogs/account"
|
|||||||
require_relative "lib/dialogs/import_application"
|
require_relative "lib/dialogs/import_application"
|
||||||
require_relative "lib/dialogs/launcher_settings"
|
require_relative "lib/dialogs/launcher_settings"
|
||||||
require_relative "lib/dialogs/application_settings"
|
require_relative "lib/dialogs/application_settings"
|
||||||
|
require_relative "lib/dialogs/asterisk"
|
||||||
require_relative "lib/states/boot"
|
require_relative "lib/states/boot"
|
||||||
require_relative "lib/states/interface"
|
require_relative "lib/states/interface"
|
||||||
require_relative "lib/window"
|
require_relative "lib/window"
|
||||||
|
|||||||
Reference in New Issue
Block a user