-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(ui): remove component library
BREAKING CHANGE: remove ui/modules/surrealism-ui - replace SStar with RateStars - replace Icon and UseIcons with Image in about.slint - add share.svg to assets - remove useless import
- Loading branch information
1 parent
df218c7
commit 1437b50
Showing
13 changed files
with
46 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
[submodule "3rdpart/sast-link-cxx-sdk"] | ||
path = 3rdpart/sast-link-cxx-sdk | ||
url = https://github.com/Serein207/sast-link-cxx-sdk.git | ||
[submodule "ui/modules/surrealism-ui"] | ||
path = ui/modules/surrealism-ui | ||
url = https://github.com/Surrealism-All/SurrealismUI.git | ||
[submodule "3rdpart/keychain"] | ||
path = 3rdpart/keychain | ||
url = https://github.com/hrantzsch/keychain.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Token } from "../global.slint"; | ||
|
||
export component RateStars { | ||
in property <int> count: 5; | ||
in-out property <int> score: 0; | ||
in property <bool> disabled: true; | ||
in property <color> normal-color: Colors.gold; | ||
in property <color> disabled-color: Token.color.on-surface.with-alpha(0.12); | ||
in property <length> icon-size: 20px; | ||
HorizontalLayout { | ||
spacing: 5px; | ||
padding: 5px; | ||
for i in count: Image { | ||
source: score - 1 >= i ? Token.image.icon.star-full : Token.image.icon.star-empty; | ||
colorize: disabled ? disabled-color : normal-color; | ||
width: icon-size; | ||
height: icon-size; | ||
TouchArea { | ||
width: parent.width; | ||
height: parent.height; | ||
clicked => { | ||
if (!disabled) { | ||
score = i + 1; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule surrealism-ui
deleted from
cb11d5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters