Light Novel Reader Api
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
Light Novel Reader Api
Light Novel Reader Api
/
io.nightfish.lightnovelreader.api.ui
/
ReaderStyle
Reader
Style
data
class
ReaderStyle
(
val
fontSize
:
Float
,
val
fontLineHeight
:
Float
,
val
fontWeight
:
Float
,
val
textColor
:
Color
,
val
textDarkColor
:
Color
)
阅读器样式配置
Since
Api 2
Parameters
font
Size
字体大小(sp)
font
Line
Height
行间距附加大小(sp)
font
Weight
字体粗细程度(100~900)
text
Color
亮色模式下的文本颜色
text
Dark
Color
深色模式下的文本颜色
Members
Constructors
Reader
Style
Link copied to clipboard
constructor
(
fontSize
:
Float
,
fontLineHeight
:
Float
,
fontWeight
:
Float
,
textColor
:
Color
,
textDarkColor
:
Color
)
Properties
font
Line
Height
Link copied to clipboard
val
fontLineHeight
:
Float
font
Size
Link copied to clipboard
val
fontSize
:
Float
font
Weight
Link copied to clipboard
val
fontWeight
:
Float
text
Color
Link copied to clipboard
val
textColor
:
Color
text
Dark
Color
Link copied to clipboard
val
textDarkColor
:
Color