-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support remote configure scroll text in full screen (#10)
* support remote configure scroll text in full screen Signed-off-by: kuromesi <[email protected]> * add config dump Signed-off-by: kuromesi <[email protected]> --------- Signed-off-by: kuromesi <[email protected]>
- Loading branch information
Showing
7 changed files
with
256 additions
and
96 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,3 +1,23 @@ | ||
# landscape | ||
|
||
Act your mobile phones as landscape. | ||
Act your mobile phones as landscape. | ||
|
||
## Remote Control Apis | ||
|
||
### ScrollTextConfiguration | ||
|
||
#### Properties | ||
|
||
- **text** (`String`): The text content to be displayed. This is a required field. | ||
- **direction** (`String?`): The direction in which the text should scroll. Possible values are `"ltr"`, `"rtl"`. | ||
- **fontSize** (`double?`): The font size of the text. | ||
- **scrollSpeed** (`double?`): The speed at which the text should scroll. | ||
- **fontColor** (`int?`): The color of the text in ARGB format. | ||
- **adaptiveColor** (`bool?`): Whether the text color should adapt to the display mode (dark mode or light mode), this will override the color settings. | ||
|
||
#### Example Usage | ||
|
||
```shell | ||
# 192.168.1.8 is the IP address of you mobile phone | ||
curl 192.168.1.8:8080/configure/scroll-text -X POST -H "Content-Type: application/json" -d '{"text":"Hello this is kuromesi speaking!", "fontSize":100}' | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Map<String, Function> configDump = {}; |
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,2 +1,3 @@ | ||
export 'package:landscape/utils/wrapper.dart'; | ||
export 'package:landscape/utils/upgrader.dart'; | ||
export 'package:landscape/utils/upgrader.dart'; | ||
export 'package:landscape/utils/config.dart'; |
Oops, something went wrong.