-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1aa66cc
commit e7a08e3
Showing
5 changed files
with
114 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
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,49 @@ | ||
@Component | ||
export default struct LayoutMore { | ||
@Link ReaderPadding: number | ||
|
||
build() { | ||
Column() { | ||
Row() { | ||
Text("边距") | ||
Slider({ | ||
value: this.ReaderPadding, | ||
max: 32, | ||
min: 12, | ||
step: 4, | ||
style: SliderStyle.InSet | ||
}) | ||
.selectedColor('rgba(0, 0, 0, 0.04)') | ||
.blockSize({ width: 30, height: 30 }) | ||
.layoutWeight(1) | ||
.onChange((value) => { | ||
this.ReaderPadding = value | ||
}) | ||
} | ||
.width("100%") | ||
|
||
Row() { | ||
Text("字体") | ||
Button("细") | ||
Button("中") | ||
Button("粗") | ||
|
||
Button("简体") | ||
Button("繁体") | ||
} | ||
.width("100%") | ||
|
||
Row() { | ||
Text("首行缩进") | ||
// Toggle() | ||
} | ||
.width("100%") | ||
} | ||
.height(500) | ||
.padding({ | ||
left: 20, | ||
right: 20 | ||
}) | ||
} | ||
} | ||
|
File renamed without changes.
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
5 changes: 5 additions & 0 deletions
5
entry/src/main/resources/base/media/my_center_set_icon_fill.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.