mirror of
https://gitee.com/openharmony/applications_settings
synced 2024-11-23 14:30:06 +00:00
新需求-颜色反转修正
Signed-off-by: hlj_wang_hanxiao <17750237002@163.com>
This commit is contained in:
parent
fd13ea34cf
commit
035fe424c1
@ -87,7 +87,7 @@ struct AccessibilitySettings {
|
||||
.borderRadius($r('app.float.radius_24'));
|
||||
|
||||
Row() {
|
||||
Column(){
|
||||
Column() {
|
||||
Text($r('app.string.invert_color'))
|
||||
.fontSize($r('sys.float.ohos_id_text_size_body1'))
|
||||
.fontColor($r('sys.color.ohos_id_color_text_primary'))
|
||||
@ -128,7 +128,7 @@ struct AccessibilitySettings {
|
||||
.width(ConfigData.WH_100_100)
|
||||
.margin({ bottom: $r('app.float.distance_12'), top: $r('app.float.distance_8') });
|
||||
}
|
||||
.height($r('app.float.wh_value_118'))
|
||||
.height($r('app.float.wh_value_160'))
|
||||
.width(ConfigData.WH_100_100)
|
||||
.borderRadius($r('app.float.radius_24'))
|
||||
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"));
|
||||
|
@ -210,7 +210,7 @@ struct AccessibilityShortKey {
|
||||
}
|
||||
|
||||
generateAllAbilityNameList(): Array<string> {
|
||||
let basicAbilities = [BASIC_ABILITY_HIGH_CONTRAST_TEXT, BASIC_ABILITY_SINGLE_AUDIO,BASIC_ABILITY_INVERT_COLOR];
|
||||
let basicAbilities = [BASIC_ABILITY_HIGH_CONTRAST_TEXT, BASIC_ABILITY_SINGLE_AUDIO, BASIC_ABILITY_INVERT_COLOR];
|
||||
return basicAbilities.concat(this.extAbilityNameList);
|
||||
}
|
||||
|
||||
@ -366,7 +366,7 @@ struct SelectAbilityScalingInformation {
|
||||
Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) {
|
||||
Text((item === BASIC_ABILITY_HIGH_CONTRAST_TEXT) ? $r('app.string.highContrast_text') :
|
||||
((item === BASIC_ABILITY_SINGLE_AUDIO) ? $r('app.string.single_audio') :
|
||||
((item === BASIC_ABILITY_INVERT_COLOR) ? $r('app.string.invert_color') :item.split('/')[1])))
|
||||
((item === BASIC_ABILITY_INVERT_COLOR) ? $r('app.string.invert_color') : item.split('/')[1])))
|
||||
.fontFamily('HarmonyHeiTi')
|
||||
.fontSize($r('sys.float.ohos_id_text_size_body1'))
|
||||
.fontWeight(FontWeight.Medium);
|
||||
@ -420,7 +420,7 @@ struct SelectAbilityScalingInformation {
|
||||
}
|
||||
|
||||
generateAllAbilityNameList(): Array<string> {
|
||||
let basicAbilities = [BASIC_ABILITY_HIGH_CONTRAST_TEXT, BASIC_ABILITY_SINGLE_AUDIO];
|
||||
let basicAbilities = [BASIC_ABILITY_HIGH_CONTRAST_TEXT, BASIC_ABILITY_SINGLE_AUDIO, BASIC_ABILITY_INVERT_COLOR];
|
||||
return basicAbilities.concat(this.extAbilityNameList);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user