parch-welcome/ui/parch-welcome.slint
Sohrab Behdani f35077f109
New Parch Welcome written in slint and rust (#16)
* new slint build

* new slint build + desktop files

* fixed the pkgbuild
2024-04-12 17:14:01 +00:00

27 lines
818 B
Text

import { Button, VerticalBox, HorizontalBox, GridBox } from "std-widgets.slint";
import "pages/assets/vazirmatn.ttf";
import "pages/assets/Inter-Regular.ttf";
import {EnglishApp,PersianApp} from "pages/pages.slint";
import { Globals } from "pages/globals.slint";
// ReExport for Native access
export { Globals }
export component App inherits Window {
width: 949px;
height: 650px;
no-frame: true;
background: transparent;
Rectangle {
border-radius: 15px;
background: Globals.currentTheme ? Globals.lightTheme : Globals.darkTheme;
animate background {
duration: 275ms;
easing: ease-in-out;
}
VerticalLayout {
if Globals.isEnglishPage: EnglishApp { }
if !Globals.isEnglishPage: PersianApp { }
}
}
}