mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
refactor(ui): reorder properties in StartPage and ConnectPage for consistency
This commit is contained in:
@@ -5,14 +5,13 @@ import {
|
|||||||
import { Button, LabeledInput } from "Components.slint";
|
import { Button, LabeledInput } from "Components.slint";
|
||||||
|
|
||||||
export component ConnectPage inherits Window {
|
export component ConnectPage inherits Window {
|
||||||
width: 1920px;
|
|
||||||
height: 1080px;
|
|
||||||
title: "UNO!";
|
|
||||||
|
|
||||||
in property <bool> is-connecting;
|
in property <bool> is-connecting;
|
||||||
|
|
||||||
callback request-connect(string, string, string);
|
callback request-connect(string, string, string);
|
||||||
|
|
||||||
|
width: 1920px;
|
||||||
|
height: 1080px;
|
||||||
|
|
||||||
// 背景渐变 (从左上角的米色到右下角的淡粉色)
|
// 背景渐变 (从左上角的米色到右下角的淡粉色)
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: @linear-gradient(135deg, #fdfbf7 0%, #f3e7e9 100%);
|
background: @linear-gradient(135deg, #fdfbf7 0%, #f3e7e9 100%);
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
import {Button} from "Components.slint";
|
import {Button} from "Components.slint";
|
||||||
|
|
||||||
export component StartPage inherits Window {
|
export component StartPage inherits Window {
|
||||||
width: 1920px;
|
|
||||||
height: 1080px;
|
|
||||||
title: "UNO!";
|
|
||||||
|
|
||||||
in property <bool> is-ready;
|
in property <bool> is-ready;
|
||||||
|
|
||||||
callback request-start;
|
callback request-start;
|
||||||
|
|
||||||
|
width: 1920px;
|
||||||
|
height: 1080px;
|
||||||
|
|
||||||
// 背景渐变 (从左上角的米色到右下角的淡粉色)
|
// 背景渐变 (从左上角的米色到右下角的淡粉色)
|
||||||
Rectangle {
|
Rectangle {
|
||||||
background: @linear-gradient(135deg, #fdfbf7 0%, #f3e7e9 100%);
|
background: @linear-gradient(135deg, #fdfbf7 0%, #f3e7e9 100%);
|
||||||
|
|||||||
Reference in New Issue
Block a user