Skip to content

Commit 08168c1

Browse files
committed
[*] fix bugs
1 parent ad8a5ff commit 08168c1

File tree

13 files changed

+807
-775
lines changed

13 files changed

+807
-775
lines changed

Cargo.lock

Lines changed: 767 additions & 747 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,18 +43,18 @@ serde = "1.0"
4343
bytes = "1.10"
4444
tokio = "1.44"
4545
regex = "1.11"
46-
slint = "1.12"
46+
slint = "1.14"
4747
image = "0.25"
4848
cfg-if = "1.0"
4949
anyhow = "1.0"
5050
chrono = "0.4"
5151
qrcode = "0.14"
52-
scraper = "0.23"
53-
reqwest = "0.12"
52+
scraper = "0.25"
53+
reqwest = "0.13"
5454
getrandom = "0.3"
5555
clipboard = "0.5"
56-
html2text = "0.15"
57-
html5ever = "0.29"
56+
html2text = "0.16"
57+
html5ever = "0.36"
5858
once_cell = "1.21"
5959
serde_json = "1.0"
6060
webbrowser = "1.0"
@@ -78,7 +78,7 @@ terminal-clipboard = "0.4"
7878
clap = "4.5"
7979
resvg = "0.45.1"
8080
tiny-skia = "0.11"
81-
mathjax_svg = "3.1"
81+
mathjax_svg = "3.2"
8282

8383
mcp = { path = "lib/mcp" }
8484
bot = { path = "lib/bot" }

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ desktop-build-debug:
2929
desktop-build-release:
3030
$(desktop-build-env) cargo build --release --features=desktop
3131

32+
desktop-build-release-winit:
33+
SLINT_BACKEND=winit-femtovg $(desktop-build-env) cargo build --release --features=desktop
34+
3235
desktop-debug:
3336
$(desktop-build-env) $(run-env) cargo run --bin ${app-name} --features=desktop
3437

flymoon/src/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pub static VERSION: &str = "v0.1.9";
1+
pub static VERSION: &str = "v0.2.1";

flymoon/ui/base/audio-control.slint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export component AudioControl inherits Rectangle {
107107
icon: Icons.skip-next;
108108
bg-color: Theme.base-background;
109109
use-auto-size: true;
110-
icon-rotation-angle: 180deg;
110+
icon-transform-rotation: 180deg;
111111
auto-size-vpadding: root.btn-vpadding;
112112
drop-shadow-blur: root.btn-drop-shadow-blur;
113113
drop-shadow-color: root.btn-drop-shadow-color;

flymoon/ui/base/elevated-btn.slint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ export component ElevatedBtn inherits Rectangle {
1313
in-out property rotation-type <=> btn.rotation-type;
1414
in-out property colorize <=> btn.colorize;
1515
in-out property enable <=> btn.enabled-toucharea;
16-
in-out property <angle> icon-rotation-angle;
16+
in-out property <angle> icon-transform-rotation;
1717
in-out property gain-focus-when-clicked <=> btn.gain-focus-when-clicked;
1818

1919
callback clicked <=> btn.clicked;
2020

2121
btn := IconBtn {
2222
icon-size: root.width * 0.65;
2323
show-icon-hover-background: false;
24-
icon-rotation-angle: root.icon-rotation-angle;
24+
icon-transform-rotation: root.icon-transform-rotation;
2525
}
2626
}

flymoon/ui/base/icon-btn.slint

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export component IconBtn inherits Rectangle {
1414
in-out property colorize <=> img.colorize;
1515
in-out property icon-size <=> img.width;
1616
in-out property icon-visible <=> img.visible;
17-
in-out property icon-rotation-angle <=> img.rotation-angle;
17+
in-out property icon-transform-rotation <=> img.transform-rotation;
1818
in-out property mouse-cursor <=> touch.mouse-cursor;
1919
in-out property enabled-toucharea <=> touch.enabled;
2020
out property has-hover <=> touch.has-hover;
@@ -82,9 +82,9 @@ export component IconBtn inherits Rectangle {
8282
vertical-alignment: root.icon-valignment;
8383
width: Theme.icon-size;
8484
colorize: Theme.icon-color;
85-
rotation-angle: 0;
85+
transform-rotation: 0;
8686

87-
animate rotation-angle {
87+
animate transform-rotation {
8888
duration: Theme.default-animate-duration;
8989
easing: ease-in-out;
9090
iteration-count: root.rotation-type == RotationType.Auto ? -1 : root.icon-rotation-iteration-count;
@@ -104,10 +104,10 @@ export component IconBtn inherits Rectangle {
104104
mouse-cursor: MouseCursor.pointer;
105105
clicked => {
106106
if (RotationType.Click == root.rotation-type) {
107-
if (icon-rotation-angle == 0) {
108-
icon-rotation-angle = 360deg;
107+
if (icon-transform-rotation == 0) {
108+
icon-transform-rotation = 360deg;
109109
} else {
110-
icon-rotation-angle = 0deg;
110+
icon-transform-rotation = 0deg;
111111
}
112112
}
113113

flymoon/ui/base/loading.slint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export component Loading inherits Rectangle {
2929
icon := Image {
3030
height: root.icon-size;
3131
width: self.height;
32-
rotation-angle: !root.is-show-animation ? 0deg : 240deg * animation-tick() / root.duration;
32+
transform-rotation: !root.is-show-animation ? 0deg : 240deg * animation-tick() / root.duration;
3333
source: root.loading-icon;
3434
colorize: root.colorize;
35-
animate rotation-angle {
35+
animate transform-rotation {
3636
easing: ease-in-out;
3737
iteration-count: -1;
3838
}

flymoon/ui/base/setting-entry.slint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export component SettingEntry inherits Rectangle {
2626
eib := IconBtn {
2727
background: Colors.transparent;
2828
icon: Icons.back;
29-
icon-rotation-angle: 180deg;
29+
icon-transform-rotation: 180deg;
3030
colorize: root.background.darker(30%);
3131
is-ltr: false;
3232
}

flymoon/ui/base/tab-btn.slint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Theme } from "../theme.slint";
33
export component TabBtn inherits Rectangle {
44
in-out property icon <=> img.source;
55
in-out property icon-width <=> img.width;
6-
in-out property icon-rotation-angle <=> img.rotation-angle;
6+
in-out property icon-transform-rotation <=> img.transform-rotation;
77
in-out property text <=> txt.text;
88

99
in-out property<length> icon-size: Theme.icon-size;

0 commit comments

Comments
 (0)