| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //
- // Copyright 2026 Aarav Ravindra Kharade
- //
- // Licensed under the Apache License, Version 2.0 (the "License");
- // you may not use this file except in compliance with the License.
- // You may obtain a copy of the License at
- //
- // http://www.apache.org/licenses/LICENSE-2.0
- //
- // Unless required by applicable law or agreed to in writing, software
- // distributed under the License is distributed on an "AS IS" BASIS,
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- // See the License for the specific language governing permissions and
- // limitations under the License.
- //
- // ═══════════════════════════════════════════════════════════════════
- // ArkOS Setup App (ui_test)
- // ═══════════════════════════════════════════════════════════════════
- // The first user-facing application shown after the boot splash
- // animation completes. Renders a welcome screen with navigation
- // buttons using the ArkGraphics display client library.
- //
- // This app runs as a system service defined in uitest.serve:
- // name=uitest
- // exec=/system/ui_test
- // autostart=true
- // respawn=true
- // deps=display
- //
- // It depends on the display service (ui_daemon) being started first.
- // The ArkGraphics client handles connection retry automatically.
- //
- // Screen Layout (1024x768):
- // ┌──────────────────────────────────┐
- // │ Status Bar (time, battery, net) │ 30px
- // ├──────────────────────────────────┤
- // │ │
- // │ [ Get started ] │ centered
- // │ [ Start -> ] │ centered
- // │ │
- // └──────────────────────────────────┘
- //
- // This app runs as a system service defined in uitest.serve:
- // name=uitest
- // `ark.ui.basic` components are built directly into the binary
- @main
- struct SetupApp: App {
- typealias Backend = GtkBackend
-
- let backend = GtkBackend()
-
- init() {}
-
- var body: some Scene {
- WindowGroup("Setup") {
- VStack {
- Text("Welcome to ARK-OS")
- .padding(.bottom, 20)
-
- Button("Get Started ->") {
- print("Get Started clicked!")
- }
- }
- .padding(100)
- }
- }
- }
|