新需求-颜色反转修正

Signed-off-by: hlj_wang_hanxiao <17750237002@163.com>
This commit is contained in:
hlj_wang_hanxiao 2023-10-16 17:23:22 +08:00
parent fd13ea34cf
commit 035fe424c1
2 changed files with 5 additions and 5 deletions

View File

@ -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"));

View File

@ -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);
}