From 4be0084ffb49e90554399d67ac694a4bda59ac78 Mon Sep 17 00:00:00 2001 From: guozejun Date: Thu, 28 Apr 2022 15:35:02 +0800 Subject: [PATCH 1/6] fix note list image margin Signed-off-by: guozejun --- .../component/src/main/ets/components/NoteListComp.ets | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/common/component/src/main/ets/components/NoteListComp.ets b/common/component/src/main/ets/components/NoteListComp.ets index 8a03da1..1bc6210 100644 --- a/common/component/src/main/ets/components/NoteListComp.ets +++ b/common/component/src/main/ets/components/NoteListComp.ets @@ -224,13 +224,13 @@ export struct NoteItemComp { } .padding({ left: 12 }) }.alignItems(HorizontalAlign.Start) - }.width(240) + }.flexShrink(1) Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { Stack({ alignContent: Alignment.Center }) { Image(this.noteItem.content_img) - .height(48) - .width(48) + .height(47) + .width(47) .borderRadius(12) .border({ width: 0.5, color: '#19182431' }) .visibility(this.noteItem.content_img ? Visibility.Visible : Visibility.None) @@ -246,7 +246,9 @@ export struct NoteItemComp { }.width(24) .height(24) .visibility(this.longpress ? Visibility.Visible : Visibility.None) - }.height(48) + } + .flexShrink(0) + .height(48) .width(this.longpress ? 80 : 48) } .width('100%') From 3812f5befd014afbbb362bf6bd81d18c4f784405 Mon Sep 17 00:00:00 2001 From: guozejun Date: Thu, 28 Apr 2022 17:01:14 +0800 Subject: [PATCH 2/6] fix folder list text weight Signed-off-by: guozejun --- common/component/src/main/ets/components/FolderListComp.ets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/component/src/main/ets/components/FolderListComp.ets b/common/component/src/main/ets/components/FolderListComp.ets index 2d59ce3..943fad9 100644 --- a/common/component/src/main/ets/components/FolderListComp.ets +++ b/common/component/src/main/ets/components/FolderListComp.ets @@ -333,6 +333,7 @@ struct FolderItemComp { .fillColor(FolderUtil.getFolderIconColor(this.AllFolderArray, this.folderItem.uuid, this.selectedFolderData.uuid == this.folderItem.uuid)) .margin({ right: 16 }) Text(FolderUtil.getFolderText(this.folderItem)) + .fontWeight(FontWeight.Medium) .fontSize(16) .textAlign(TextAlign.Center) .maxLines(1) @@ -344,6 +345,7 @@ struct FolderItemComp { }.width(118) Text(FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.folderItem.uuid).toString()) + .fontWeight(FontWeight.Regular) .fontSize(14) .textAlign(TextAlign.Center) } From 16fe735baa86dd1c3a820bfd685920d6294b1a73 Mon Sep 17 00:00:00 2001 From: guozejun Date: Thu, 28 Apr 2022 17:02:02 +0800 Subject: [PATCH 3/6] editor style css file indent Signed-off-by: guozejun --- .../main/resources/rawfile/editor_style.css | 110 +++++++++--------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/common/resources/src/main/resources/rawfile/editor_style.css b/common/resources/src/main/resources/rawfile/editor_style.css index c454d65..b93ea42 100644 --- a/common/resources/src/main/resources/rawfile/editor_style.css +++ b/common/resources/src/main/resources/rawfile/editor_style.css @@ -14,76 +14,76 @@ */ html { - height: 100%; - font-family: sans-serif; --webkit-text-size-adjust: 100%; + height: 100%; + font-family: sans-serif; + webkit-text-size-adjust: 100%; } body { - overflow: scroll; - display: table; - table-layout: fixed; - width: 100%; - min-height:100%; - color: #333333; - margin: 0; + overflow: scroll; + display: table; + table-layout: fixed; + width: 100%; + min-height: 100%; + color: #333333; + margin: 0; } #editorjs { - padding-left: 24px; - padding-right: 24px; - width:100%; - display: table-cell; - outline: 0px solid transparent; - background-repeat: no-repeat; - background-position: center; - background-size: cover; - color: #333333; - font-size:40px; + padding-left: 24px; + padding-right: 24px; + width: 100%; + display: table-cell; + outline: 0px solid transparent; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + color: #333333; + font-size: 40px; } #editorjs[placeholder]:empty:not(:focus):before { - content: attr(placeholder); - font-size:40px; - color: #9b9b9b; + content: attr(placeholder); + font-size: 40px; + color: #9b9b9b; } .note-checkbox:checked { - background: #F88805; - border: 2px solid #F88805; - outline: none; - margin-left:0px; - margin-right:0px; - opacity: 1; + background: #F88805; + border: 2px solid #F88805; + outline: none; + margin-left: 0px; + margin-right: 0px; + opacity: 1; } .note-checkbox { - width: 23px; - height: 23px; - background-color: #ffffff; - border: 2px solid #555555; --webkit-border-radius: 50%; --webkit-appearance: none; --webkit-user-select: none; - border-radius: 50%; - font-size: 0.8rem; - margin-left:0px; - margin-top:10px; - margin-right:0px; - margin-bottom:0px; - outline: none; - padding: 0; - position: relative; - display: inline-block; --webkit-transition: background-color ease 0.1s; - transition: background-color ease 0.1s; - vertical-align: top; - cursor: default; - user-select: none; + width: 23px; + height: 23px; + background-color: #ffffff; + border: 2px solid #555555; + webkit-border-radius: 50%; + webkit-appearance: none; + webkit-user-select: none; + border-radius: 50%; + font-size: 0.8rem; + margin-left: 0px; + margin-top: 10px; + margin-right: 0px; + margin-bottom: 0px; + outline: none; + padding: 0; + position: relative; + display: inline-block; + webkit-transition: background-color ease 0.1s; + transition: background-color ease 0.1s; + vertical-align: top; + cursor: default; + user-select: none; } -.note-checkbox:checked+span{ - text-decoration: line-through; - color:#F88805; - opacity: 0.4; +.note-checkbox:checked+span { + text-decoration: line-through; + color: #F88805; + opacity: 0.4; } From 562e3eb4b687b0286cc434cabc0416392ffda6bd Mon Sep 17 00:00:00 2001 From: guozejun Date: Thu, 28 Apr 2022 17:03:03 +0800 Subject: [PATCH 4/6] add search mask effect Signed-off-by: guozejun --- .../src/main/ets/components/NoteListComp.ets | 105 ++++++++++-------- 1 file changed, 60 insertions(+), 45 deletions(-) diff --git a/common/component/src/main/ets/components/NoteListComp.ets b/common/component/src/main/ets/components/NoteListComp.ets index 1bc6210..083e612 100644 --- a/common/component/src/main/ets/components/NoteListComp.ets +++ b/common/component/src/main/ets/components/NoteListComp.ets @@ -53,11 +53,14 @@ export struct NoteListComp { Flex({direction: FlexDirection.Column}) { NoteOverViewComp({ controllerShow: this.controllerShow }) + Column() {} + .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) + .height(this.search ? 15 : 0) NoteItemListComp({ controllerShow: this.controllerShow }) } - .padding({ top: this.search ? 15 : 0 }) + .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) .width('100%') - .flexShrink(1) + .flexGrow(1) Column() { OperateNoteCompForPortrait() @@ -354,60 +357,71 @@ export struct NoteItemListComp { .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) .visibility((FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) == 0) ? Visibility.None : Visibility.Visible) - Flex({ justifyContent: FlexAlign.Center }) { - Text($r("app.string.permanently_delete_tips")) - .fontSize(12) - .fontColor($r("app.color.Recently_delete_prompt_font_color")) - } - .padding({ bottom: this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? 12 : 0 }) - .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) - .width('100%') - .visibility(this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? Visibility.Visible : Visibility.None) + Stack() { + Flex({ justifyContent: FlexAlign.Center }) { + Text($r("app.string.permanently_delete_tips")) + .fontSize(12) + .fontColor($r("app.color.Recently_delete_prompt_font_color")) + } + .padding({ bottom: this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? 12 : 0 }) + .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) + .width('100%') + .visibility(this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? Visibility.Visible : Visibility.None) - Column() { - List({ initialIndex: 0 }) { - ListItem() { - Column({ space: 8 }) { - Image($r('app.media.emptyPage')) - .width(120) - .height(120) - Text($r("app.string.Empty_page")) - .fontSize(12) - .fontColor($r("app.color.Empty_page_font_color")) - } - } - .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) - .width('100%') - .height('100%') - .padding({ bottom: 120 }) - .visibility((FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) == 0) ? Visibility.Visible : Visibility.None) - - ForEach(this.inputKeyword.length == 0 ? - NoteUtil.getNoteDataArray(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) : this.searchResultList, (noteItem) => { + Column() { + List({ initialIndex: 0 }) { ListItem() { - Column() { - NoteItemComp({ - noteItem: noteItem, - spans: SearchModel.splitToHighlightText(noteItem.title, this.inputKeyword), - controllerShow: this.controllerShow - }) + Column({ space: 8 }) { + Image($r('app.media.emptyPage')) + .width(120) + .height(120) + Text($r("app.string.Empty_page")) + .fontSize(12) + .fontColor($r("app.color.Empty_page_font_color")) } - .padding({ left: 24, right: 24, bottom: 12 }) } .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) - }, noteItem => noteItem.uuid.toString()) + .width('100%') + .height('100%') + .padding({ bottom: 120 }) + .visibility((FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) == 0) ? Visibility.Visible : Visibility.None) + + ForEach(this.inputKeyword.length == 0 ? + NoteUtil.getNoteDataArray(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) : this.searchResultList, (noteItem) => { + ListItem() { + Column() { + NoteItemComp({ + noteItem: noteItem, + spans: SearchModel.splitToHighlightText(noteItem.title, this.inputKeyword), + controllerShow: this.controllerShow + }) + } + .padding({ left: 24, right: 24, bottom: 12 }) + } + .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) + }, noteItem => noteItem.uuid.toString()) + } + .height("100%") + .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) + .listDirection(Axis.Vertical) + .edgeEffect(EdgeEffect.Spring) + } + .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) + .flexGrow(1) + + Column() { } .height("100%") - .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) - .listDirection(Axis.Vertical) - .edgeEffect(EdgeEffect.Spring) + .width("100%") + .backgroundColor("#18181A") + .opacity(0.1) + .visibility(this.search ? Visibility.Visible : Visibility.Hidden) } .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) .flexGrow(1) } .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) .flexGrow(1) - .padding({ bottom: 1 }) .onClick(() => { this.search = false }) @@ -649,8 +663,8 @@ export struct SearchComp { LogUtil.info(TAG, "Search value: " + value) this.inputKeyword = value }) - .onClick(() => { - this.search = true + .onEditChange((isEditing: boolean) => { + this.search = isEditing }) } .height(40) @@ -660,6 +674,7 @@ export struct SearchComp { .border({ width: 1.5, color: $r("app.color.divider_color_e4e4e4") }) .margin({ right: this.search ? 40 : 0 }) } + .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) } } From 328518a4e859b7fabc41320c63481c341851b7ff Mon Sep 17 00:00:00 2001 From: guozejun Date: Thu, 28 Apr 2022 17:15:06 +0800 Subject: [PATCH 5/6] fix search mask style Signed-off-by: guozejun --- .../src/main/ets/components/NoteListComp.ets | 60 ++++++++++++------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/common/component/src/main/ets/components/NoteListComp.ets b/common/component/src/main/ets/components/NoteListComp.ets index 083e612..4275c60 100644 --- a/common/component/src/main/ets/components/NoteListComp.ets +++ b/common/component/src/main/ets/components/NoteListComp.ets @@ -16,15 +16,16 @@ import DateUtil from '@ohos/utils/src/main/ets/default/baseUtil/DateUtil' import FolderData from '@ohos/utils/src/main/ets/default/model/databaseModel/FolderData' import NoteData from '@ohos/utils/src/main/ets/default/model/databaseModel/NoteData' -import {TableName, NoteTableColumn, SysDefFolderUuid, Favorite, Delete, Top, NoteType} from '@ohos/utils/src/main/ets/default/model/databaseModel/EnumData' -import {NoteDataMoveDialog, DeleteDialog} from './CusDialogComp' +import { TableName, NoteTableColumn, SysDefFolderUuid, Favorite, Delete, Top, NoteType +} from '@ohos/utils/src/main/ets/default/model/databaseModel/EnumData' +import { NoteDataMoveDialog, DeleteDialog } from './CusDialogComp' import RdbStoreUtil from '@ohos/utils/src/main/ets/default/baseUtil/RdbStoreUtil' import prompt from '@system.prompt' import NoteUtil from '@ohos/utils/src/main/ets/default/baseUtil/NoteUtil' import FolderUtil from '@ohos/utils/src/main/ets/default/baseUtil/FolderUtil' import StyleConstants from '@ohos/utils/src/main/ets/default/constants/StyleConstants' import SearchModel from '@ohos/utils/src/main/ets/default/model/searchModel/SearchModel' -import {LogUtil} from '@ohos/utils/src/main/ets/default/baseUtil/LogUtil' +import { LogUtil } from '@ohos/utils/src/main/ets/default/baseUtil/LogUtil' import router from '@system.router'; const TAG = "NoteListComp" @@ -49,13 +50,15 @@ export struct NoteListComp { controllerShow: WebController build() { - Flex({direction: FlexDirection.Column}) { + Flex({ direction: FlexDirection.Column }) { - Flex({direction: FlexDirection.Column}) { + Flex({ direction: FlexDirection.Column }) { NoteOverViewComp({ controllerShow: this.controllerShow }) - Column() {} + Column() { + } .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) .height(this.search ? 15 : 0) + NoteItemListComp({ controllerShow: this.controllerShow }) } .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) @@ -79,7 +82,6 @@ export struct NoteListComp { aboutToDisappear(): void{ LogUtil.info(TAG, "aboutToDisappear") } - } @Component @@ -115,6 +117,7 @@ struct NoteOverViewComp { } }) }.alignItems(HorizontalAlign.Center) + Flex({ direction: FlexDirection.Column, wrap: FlexWrap.Wrap, @@ -163,7 +166,8 @@ struct NoteOverViewComp { Text(this.refreshFlag.toString()).visibility(Visibility.None) } .backgroundColor($r('app.color.notelist_bgcolor_f1f3f5')) - .width('100%').height(82) + .width('100%') + .height(82) .padding({ left: this.sectionStatus == 2 ? 24 : 36, right: 24 }) // 两分栏时缩进图标与左侧不需要间距 .visibility(this.search ? Visibility.None : Visibility.Visible) } @@ -183,7 +187,7 @@ export struct NoteItemComp { @Consume('RefreshFlag') refreshFlag: number @Consume('Search') search: boolean @Consume('selectedAll') selectedAll: boolean - @Consume('PortraitModel') portraitModel:boolean + @Consume('PortraitModel') portraitModel: boolean build() { Flex({ justifyContent: FlexAlign.SpaceBetween, alignItems: ItemAlign.Center }) { @@ -201,9 +205,15 @@ export struct NoteItemComp { }), item => { if (item.data.type == 0) { - Span(item.data.text).fontColor($r("app.color.note_title_font_color")).fontSize(16).fontWeight(FontWeight.Medium) + Span(item.data.text) + .fontColor($r("app.color.note_title_font_color")) + .fontSize(16) + .fontWeight(FontWeight.Medium) } else if (item.data.type == 1) { - Span(item.data.text).fontColor($r("app.color.note_title_font_color_blue")).fontSize(16).fontWeight(FontWeight.Medium) + Span(item.data.text) + .fontColor($r("app.color.note_title_font_color_blue")) + .fontSize(16) + .fontWeight(FontWeight.Medium) } }, item => item.index) @@ -238,6 +248,7 @@ export struct NoteItemComp { .border({ width: 0.5, color: '#19182431' }) .visibility(this.noteItem.content_img ? Visibility.Visible : Visibility.None) } + Stack({ alignContent: Alignment.Center }) { Image($r("app.media.unChecked")) .height(24) @@ -284,10 +295,12 @@ export struct NoteItemComp { AppStorage.SetOrCreate('ContinueNote', continueNote) LogUtil.info(TAG, "NoteItemComp, set continue note success") } - if(this.portraitModel == false) { - this.controllerShow.runJavaScript({script:"RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) + if (this.portraitModel == false) { + this.controllerShow.runJavaScript({ + script: "RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" + }) } - if(this.portraitModel == true) { + if (this.portraitModel == true) { AppStorage.SetOrCreate('NewNote', this.selectedNoteData) AppStorage.SetOrCreate('NewFolder', this.selectedFolderData) routePage() @@ -322,7 +335,7 @@ export struct NoteItemListComp { @Consume @Watch('doSearch') inputKeyword: string @Consume('SearchResultList') searchResultList: NoteData[] @Consume('SelectedNoteData') selectedNoteData: NoteData - @Consume('PortraitModel') portraitModel:boolean + @Consume('PortraitModel') portraitModel: boolean controllerShow: WebController doSearch() { @@ -335,8 +348,10 @@ export struct NoteItemListComp { } else { this.selectedNoteData = NoteUtil.getFirstNoteData(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) } - if(this.portraitModel == false) { - this.controllerShow.runJavaScript({script:"RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) + if (this.portraitModel == false) { + this.controllerShow.runJavaScript({ + script: "RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" + }) } // save continue data let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject()) @@ -347,7 +362,7 @@ export struct NoteItemListComp { } build() { - Flex({direction: FlexDirection.Column}) { + Flex({ direction: FlexDirection.Column }) { Text(this.refreshFlag.toString()).visibility(Visibility.None) Flex() { SearchComp() @@ -408,6 +423,7 @@ export struct NoteItemListComp { } .backgroundColor($r("app.color.notelist_bgcolor_f1f3f5")) .flexGrow(1) + .margin({ top: this.search ? 8 : 0 }) Column() { } @@ -459,8 +475,8 @@ export struct OperateNoteComp { let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject()) AppStorage.SetOrCreate('ContinueNote', continueNote) LogUtil.info(TAG, "onMoveConfirm, set continue note success") - if(this.portraitModel == false) { - this.controllerShow.runJavaScript({script:"RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) + if (this.portraitModel == false) { + this.controllerShow.runJavaScript({ script: "RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) } this.longpress = false this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0) @@ -497,8 +513,8 @@ export struct OperateNoteComp { this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0) this.longpress = false this.selectedNoteData = NoteUtil.getFirstNoteData(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) - if(this.portraitModel == false) { - this.controllerShow.runJavaScript({script:"RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) + if (this.portraitModel == false) { + this.controllerShow.runJavaScript({ script: "RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')" }) } // save continue data let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject()) From 1018c9e21f4e6be1f3b05286cf57d93a44ec8f9d Mon Sep 17 00:00:00 2001 From: guozejun Date: Fri, 29 Apr 2022 10:12:39 +0800 Subject: [PATCH 6/6] move dialog order Signed-off-by: guozejun --- .../src/main/ets/components/CusDialogComp.ets | 8 +++- .../main/ets/components/FolderListComp.ets | 2 +- .../main/resources/base/element/color.json | 4 ++ .../src/main/resources/base/media/delete.svg | 16 ++++++- .../resources/base/media/favorite_cancel.svg | 43 ++++++------------- .../main/ets/default/baseUtil/FolderUtil.ets | 4 +- 6 files changed, 42 insertions(+), 35 deletions(-) diff --git a/common/component/src/main/ets/components/CusDialogComp.ets b/common/component/src/main/ets/components/CusDialogComp.ets index 57dbbdf..33298f8 100644 --- a/common/component/src/main/ets/components/CusDialogComp.ets +++ b/common/component/src/main/ets/components/CusDialogComp.ets @@ -299,8 +299,14 @@ struct NoteDataMoveItemComp { export struct NoteDataMoveDialog { noteDataMoveDialogCtl: CustomDialogController onConfirm: (folderUuid: string) => void + NoteDataMoveArray: FolderData[] @StorageLink('AllFolderArray') AllFolderArray: FolderData[] = [] + aboutToAppear() { + this.NoteDataMoveArray = this.AllFolderArray.slice(2, this.AllFolderArray.length); + this.NoteDataMoveArray.push(this.AllFolderArray[1]); + } + build() { Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, wrap: FlexWrap.NoWrap }) { Flex({ alignItems: ItemAlign.Center }) { @@ -311,7 +317,7 @@ export struct NoteDataMoveDialog { .width(288) List() { - ForEach(this.AllFolderArray, (item) => { + ForEach(this.NoteDataMoveArray, (item) => { ListItem() { NoteDataMoveItemComp({ folderItem: item }) } diff --git a/common/component/src/main/ets/components/FolderListComp.ets b/common/component/src/main/ets/components/FolderListComp.ets index 943fad9..df97271 100644 --- a/common/component/src/main/ets/components/FolderListComp.ets +++ b/common/component/src/main/ets/components/FolderListComp.ets @@ -327,7 +327,7 @@ struct FolderItemComp { Flex({ alignItems: ItemAlign.Center, wrap: FlexWrap.NoWrap, justifyContent: FlexAlign.SpaceBetween }) { Row() { Image(FolderUtil.getFolderIcon(this.folderItem.uuid)) - .objectFit(ImageFit.ScaleDown) + .objectFit(ImageFit.Fill) .width(24) .height(24) .fillColor(FolderUtil.getFolderIconColor(this.AllFolderArray, this.folderItem.uuid, this.selectedFolderData.uuid == this.folderItem.uuid)) diff --git a/common/resources/src/main/resources/base/element/color.json b/common/resources/src/main/resources/base/element/color.json index 4f8480b..49002bc 100644 --- a/common/resources/src/main/resources/base/element/color.json +++ b/common/resources/src/main/resources/base/element/color.json @@ -44,6 +44,10 @@ "name": "folder_color_182431", "value": "#182431" }, + { + "name": "folder_color_99182431", + "value": "#99182431" + }, { "name": "folder_color_f86d05", "value": "#f86d05" diff --git a/common/resources/src/main/resources/base/media/delete.svg b/common/resources/src/main/resources/base/media/delete.svg index 2f1c1fb..3df9446 100644 --- a/common/resources/src/main/resources/base/media/delete.svg +++ b/common/resources/src/main/resources/base/media/delete.svg @@ -1 +1,15 @@ -删除 \ No newline at end of file + + + + +删除 + + diff --git a/common/resources/src/main/resources/base/media/favorite_cancel.svg b/common/resources/src/main/resources/base/media/favorite_cancel.svg index c7d09d6..5d0e0a1 100644 --- a/common/resources/src/main/resources/base/media/favorite_cancel.svg +++ b/common/resources/src/main/resources/base/media/favorite_cancel.svg @@ -1,30 +1,13 @@ - - - - -收藏(线性) - - + + + 收藏 + + + + + + + + + + \ No newline at end of file diff --git a/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets b/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets index 00273bc..16bc096 100644 --- a/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets +++ b/common/utils/src/main/ets/default/baseUtil/FolderUtil.ets @@ -68,11 +68,11 @@ export class FolderUtil { let folderData: FolderData = this.getFolderData(folderDataArray, selectFolderUuid) if (folderData == undefined) { LogUtil.info(TAG, "FolderIconColor is 182431") - return $r("app.color.folder_color_182431") + return $r("app.color.folder_color_99182431") } LogUtil.info(TAG, "folderData uuid " + folderData.uuid + " isSelected " + isSelected) if (folderData.folder_type == FolderType.SysDef || folderData.folder_type == FolderType.FeatureDef) { - return isSelected ? $r("app.color.folder_color_f86d05") : $r("app.color.folder_color_182431") + return isSelected ? $r("app.color.folder_color_f86d05") : $r("app.color.folder_color_99182431") } return folderData.color }