diff --git a/common/component/src/main/ets/components/CusDialogComp.ets b/common/component/src/main/ets/components/CusDialogComp.ets
index 9520cf6fdd92773f6bcf225d813a70d7e9d18ef4..bda7a85955df4e5059357671c5fa205290499c53 100644
--- a/common/component/src/main/ets/components/CusDialogComp.ets
+++ b/common/component/src/main/ets/components/CusDialogComp.ets
@@ -41,12 +41,13 @@ export struct NewOrEditFolderDialog {
.fontSize(20)
.height(56)
.margin({ left: 24 })
+ .fontWeight(FontWeight.Medium)
// folder color choose
Flex({ wrap: FlexWrap.NoWrap, justifyContent: FlexAlign.SpaceBetween }) {
ForEach(circleColorArray, (colorStr: string) => {
ColorCircleComp({ circleColor: colorStr })
}, colorStr => colorStr)
- }.margin({ bottom: 24, left: 24, right: 24 })
+ }.margin({ bottom: 12, left: 24, right: 24 })
// folder name input
Flex({ wrap: FlexWrap.NoWrap, justifyContent: FlexAlign.SpaceBetween }) {
Image($r("app.media.folder"))
@@ -61,6 +62,7 @@ export struct NewOrEditFolderDialog {
.borderRadius(15)
.backgroundColor($r("app.color.New_folder_input_box_color"))
.width('100%')
+ .padding({left: 12, bottom: -12})
.onChange((value: string) => {
this.inputName = value
FolderUtil.duplicateDetection(this.inputName, this.AllFolderArray).then(result => {
@@ -73,12 +75,17 @@ export struct NewOrEditFolderDialog {
.height(1)
.margin({ left: 64, right: 24 })
.color((this.isExisted && this.inputName != this.oriInputName) ? $r("app.color.category_already_exist_divider_color") : $r("app.color.divider_color_182431"))
-
- Text($r("app.string.category_already_exist"))
- .fontSize(10)
- .margin({ left: 64, top: 4 })
- .fontColor($r("app.color.category_already_exist_font_color"))
- .visibility((this.isExisted && this.inputName != this.oriInputName) ? Visibility.Visible : Visibility.None)
+ if(this.isExisted && this.inputName != this.oriInputName){
+ Text($r("app.string.category_already_exist"))
+ .fontSize(10)
+ .margin({ left: 64, top: 4 })
+ .fontColor($r("app.color.category_already_exist_font_color"))
+ .visibility((this.isExisted && this.inputName != this.oriInputName) ? Visibility.Visible : Visibility.None)
+ }else{
+ Column(){}
+ .height(16)
+ .width("100%")
+ }
// button group
Flex({ wrap: FlexWrap.Wrap, justifyContent: FlexAlign.SpaceBetween }) {
diff --git a/common/component/src/main/ets/components/FolderListComp.ets b/common/component/src/main/ets/components/FolderListComp.ets
index a1ec2dbdf31ef40faa8d9f62966703eb22dbbc48..c135109ef01e6fb3414deb0622c99997bab0e8a1 100644
--- a/common/component/src/main/ets/components/FolderListComp.ets
+++ b/common/component/src/main/ets/components/FolderListComp.ets
@@ -54,6 +54,7 @@ export struct FolderListComp {
.width("100%")
.margin({ top: 28 })
.padding({ left: 24 })
+ .flexGrow(1)
NoteAndCreateComp()
// center
@@ -65,8 +66,9 @@ export struct FolderListComp {
}
}
}, folderItem => folderItem.name.toString())
- }.width('100%')
+ }.width('100%').height(450)
.padding({ left: 12, right: 12 })
+ .flexGrow(1)
}
@@ -80,6 +82,7 @@ export struct FolderListComp {
controllerShow: this.controllerShow
})
}
+ .flexGrow(0)
.width("100%")
.padding({ left: 12, right: 12 })
}
diff --git a/common/component/src/main/ets/components/NoteContentComp.ets b/common/component/src/main/ets/components/NoteContentComp.ets
index 0acc11b90314f8d0655499a08a5cc5d81b8b9be0..5959c0f897155c7b6cd596215469cd77d84d1834 100644
--- a/common/component/src/main/ets/components/NoteContentComp.ets
+++ b/common/component/src/main/ets/components/NoteContentComp.ets
@@ -46,6 +46,7 @@ export struct NoteContentComp {
@Consume('SectionStatus') sectionStatus: number
@Consume('LastSectionStatus') lastSectionStatus: number
@Consume('Issave') issave: number
+ @Consume('Search') search: boolean
controllerShow: WebController
private editContentFlag = false
@State uri1: string = ""
@@ -177,6 +178,13 @@ export struct NoteContentComp {
}
.height(StyleConstants.PERCENTAGE_100)
.visibility(FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) == 0 ? Visibility.Hidden : Visibility.Visible)
+ Column() {
+ }
+ .height("100%")
+ .width("100%")
+ .backgroundColor("#18181A")
+ .opacity(0.1)
+ .visibility(this.search ? Visibility.Visible : Visibility.Hidden)
}
.height(StyleConstants.PERCENTAGE_100)
.width(StyleConstants.PERCENTAGE_100)
@@ -268,7 +276,7 @@ export struct NoteContentOverViewComp {
Row() {
Text(this.selectedNoteData.title)
.fontSize(30)
- .margin({ left: 12, right: 24 })
+ .margin({ left: 0, right: 24 })
.onClick(() => {
this.editModel = true
this.sectionStatus = 1
@@ -285,13 +293,14 @@ export struct NoteContentOverViewComp {
.fontSize(12)
.padding({ top: 4, bottom: 4 })
.fontColor($r("app.color.modified_time_font_color"))
- .margin({ left: 12 })
+ .margin({ left: 0 })
Row() {
Text(FolderUtil.getFolderText(FolderUtil.getFolderData(AppStorage.Get('AllFolderArray'), this.selectedNoteData.folder_uuid)) ==
folderTextMap["sys_def_myFavorites_uuid"] ? folderTextMap["sys_def_unClassified_uuid"] :
FolderUtil.getFolderText(FolderUtil.getFolderData(AppStorage.Get('AllFolderArray'), this.selectedNoteData.folder_uuid)))
.fontSize(12)
.fontColor($r("app.color.list_modified_time_font_color"))
+ .padding({ top: 1 })
Image($r('app.media.triangle'))
.width(6)
.height(12)
@@ -451,7 +460,7 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
Button({ type: ButtonType.Normal, stateEffect: true }) {
Image($r('app.media.styles'))
@@ -465,7 +474,7 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
Button({ type: ButtonType.Normal, stateEffect: true }) {
Image($r('app.media.picture_white'))
@@ -503,7 +512,7 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
Button({ type: ButtonType.Normal, stateEffect: true }) {
@@ -518,7 +527,7 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
Button({ type: ButtonType.Normal, stateEffect: true }) {
Image($r('app.media.todo'))
@@ -532,11 +541,11 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
Button({ type: ButtonType.Normal, stateEffect: true }) {
- Image($r('app.media.tick_thick'))
+ Image($r('app.media.tick_thin'))
.height(24)
.width(24)
.fillColor(this.issave == 0 ? Color.Black : Color.Grey)
@@ -551,7 +560,7 @@ export struct ToolBarComp {
}.width(42)
.height(42)
.borderRadius(8)
- .backgroundColor($r('app.color.color_ffffff'))
+ .backgroundColor($r('app.color.color_fffffB'))
}.width(274)
} else {
Row({ space: StyleConstants.SPACE_24 }) {
@@ -611,6 +620,7 @@ struct NoteDataMoveItemCompTablet {
Column() {
Flex({ alignItems: ItemAlign.Center, wrap: FlexWrap.NoWrap, justifyContent: FlexAlign.SpaceBetween }) {
Text(FolderUtil.getFolderText(this.folderItem))
+ .padding({ top: 3 })
.fontSize(16)
.fontColor(FolderUtil.getFolderIconColor(this.AllFolderArray, this.folderItem.uuid == this.uuid ? this.folderItem.uuid : '', this.folderItem.uuid == this.uuid))
.textAlign(TextAlign.Center)
diff --git a/common/component/src/main/ets/components/NoteListComp.ets b/common/component/src/main/ets/components/NoteListComp.ets
index f8a159edec897907a268cf55be4976a8cda2cfac..61f4dfd771156349785adeadec9179c3e368fd26 100644
--- a/common/component/src/main/ets/components/NoteListComp.ets
+++ b/common/component/src/main/ets/components/NoteListComp.ets
@@ -124,7 +124,7 @@ struct NoteOverViewComp {
Text(FolderUtil.getFolderText(this.selectedFolderData))
.fontSize(30)
.fontColor($r("app.color.all_notes_font_color"))
- .fontWeight(FontWeight.Bold)
+ .fontWeight(FontWeight.Medium)
.textOverflow({ overflow: TextOverflow.Ellipsis })
Row() {
Text(FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid).toString())
@@ -378,7 +378,8 @@ export struct NoteItemListComp {
}
.padding({ bottom: this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? 12 : 0 })
.width('100%')
- .visibility(this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes ? Visibility.Visible : Visibility.None)
+ .visibility(this.selectedFolderData.uuid == SysDefFolderUuid.RecentDeletes
+ && FolderUtil.getNoteCount(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid) > 0 ? Visibility.Visible : Visibility.None)
Column() {
List({ initialIndex: 0 }) {
@@ -673,6 +674,7 @@ export struct SearchComp {
.backgroundColor(this.longpress ? $r("app.color.search_longpress_bgcolor_f7f8f9") : $r("app.color.color_ffffff"))
.caretColor($r("app.color.search_note_caret_color"))
.enabled(this.longpress ? false : true)
+ .padding({ left:6, top:1 })
.padding({left:6})
.onEditChange((isEditing: boolean) => {
this.search = isEditing
diff --git a/common/resources/src/main/resources/base/element/color.json b/common/resources/src/main/resources/base/element/color.json
index 416d7d4399a22cc1e88ac4fee2633eea28781e28..de3abcb26695a5f9bb60782a3f4380591113a503 100644
--- a/common/resources/src/main/resources/base/element/color.json
+++ b/common/resources/src/main/resources/base/element/color.json
@@ -2,11 +2,11 @@
"color": [
{
"name": "color_ffffff",
- "value": "#ffffff"
+ "value": "#F1F3F5"
},
{
"name": "color_fffffB",
- "value": "#FFFBFBFB"
+ "value": "#ffffff"
},
{
"name": "delete_color_fa2a2d",
diff --git a/common/resources/src/main/resources/rawfile/editor_style.css b/common/resources/src/main/resources/rawfile/editor_style.css
index 4a0563cce4d15db2706056528e97ce5781d5ebc6..a28d7abd2b6d51343a0145c67644dc67cdea5e61 100644
--- a/common/resources/src/main/resources/rawfile/editor_style.css
+++ b/common/resources/src/main/resources/rawfile/editor_style.css
@@ -51,7 +51,7 @@ body {
.note-checkbox:checked {
background: #F88805;
- border: 2px solid #F88805;
+ border: 1px solid #F88805;
outline: none;
margin-left: 0px;
margin-right: 0px;
@@ -59,10 +59,12 @@ body {
}
.note-checkbox {
- width: 20px;
- height: 20px;
+ width: 18px;
+ height: 18px;
+ line-height: 22.4px;
background-color: #ffffff;
- border: 2px solid #555555;
+ border: 2px solid #182431;
+ opacity: 0.6;
-webkit-border-radius: 50%;
-webkit-appearance: none;
-webkit-user-select: none;
@@ -70,8 +72,8 @@ body {
font-size: 0.8rem;
margin-left: 0px;
margin-top: 0px;
- margin-right: 4px;
- margin-bottom: 9px;
+ margin-right: 10px;
+ margin-bottom: 6px;
outline: none;
padding: 0;
position: relative;
@@ -85,7 +87,7 @@ body {
.note-checkbox:checked+span {
text-decoration: line-through;
- margin-left: 12px;
+ margin-left: 10px;
color: #F88805;
opacity: 0.4;
}
diff --git a/common/resources/src/main/resources/rawfile/rich_editor.js b/common/resources/src/main/resources/rawfile/rich_editor.js
index 012da17debd23bd32847e6bd991086b15a238efe..96f99e81659b9310727b28f119489d445cdf8e38 100644
--- a/common/resources/src/main/resources/rawfile/rich_editor.js
+++ b/common/resources/src/main/resources/rawfile/rich_editor.js
@@ -297,7 +297,7 @@ RICH_EDITOR.setTodo = function () {
var parent = document.getElementById('editorjs');
var isContentEmpty = parent.innerHTML.trim().length === 0 || parent.innerHTML === '
';
var html = (isContentEmpty ? '' : '
')
- + ''
+ + ''
+ ' ';
document.execCommand('insertHTML', false, html);
};
diff --git a/common/utils/src/main/ets/default/model/NoteBaseData.ets b/common/utils/src/main/ets/default/model/NoteBaseData.ets
index b5a09b7fc31d5da9a9074fc50996983027b584cd..3c2de8f7e435db1e59151f12060b787e92f100ef 100644
--- a/common/utils/src/main/ets/default/model/NoteBaseData.ets
+++ b/common/utils/src/main/ets/default/model/NoteBaseData.ets
@@ -16,7 +16,7 @@
import NoteData from '../model/databaseModel/NoteData'
export const circleColorArray: string[] = [
- "#e84026", // 深红
+ "#f86d05", // 深红
"#ff7500", // 浅红
"#ffbf00", // 黄色
"#41ba41", // 绿色
@@ -27,7 +27,7 @@ export const circleColorArray: string[] = [
]
export const fontColorArray: string[] = [
- "#e84026", // 深红
+ "#f86d05", // 深红
"#ffbf00", // 黄色
"#41ba41", // 绿色
"#00aaee", // 中蓝
@@ -37,7 +37,7 @@ export const fontColorArray: string[] = [
]
export const unSelectedNoteBgColorMap = {
- "#e84026": "#eecfcc",
+ "#f86d05": "#fff8eceb",
"#ff7500": "#f3d9c4",
"#ffbf00": "#f3e8c4",
"#41ba41": "#cde7d1",
@@ -49,7 +49,7 @@ export const unSelectedNoteBgColorMap = {
}
export const selectedNoteBgColorMap = {
- "#e84026": "#eec4b8",
+ "#f86d05": "#eec4b8",
"#ff7500": "#f1d8c7",
"#ffbf00": "#f3cdb1",
"#41ba41": "#d1dabc",
diff --git a/common/utils/src/main/ets/default/model/databaseModel/SysDefData.ets b/common/utils/src/main/ets/default/model/databaseModel/SysDefData.ets
index 78fd18ecdd340991a862a20f44bc196a142c5623..d88fbadefd5a4f9702fabcea814d6c172a2a75f0 100644
--- a/common/utils/src/main/ets/default/model/databaseModel/SysDefData.ets
+++ b/common/utils/src/main/ets/default/model/databaseModel/SysDefData.ets
@@ -99,7 +99,7 @@ export default {
"id": 7,
"name": "工作",
"uuid": SysDefFolderUuid.Work,
- "color": "#e84026",
+ "color": "#f86d05",
"folder_type": FolderType.CusDef,
"is_deleted": Delete.No,
"created_time": 1641636508000,
@@ -162,14 +162,14 @@ export default {
"title": "蛋糕做法",
"uuid": "note4_uuid",
"folder_uuid": SysDefFolderUuid.Life,
- "content_text": '