Skip to content

Commit 3e5fa22

Browse files
authored
Merge pull request #139 from 3colorr/v1.2.3
V1.2.3
2 parents e65f68e + 4f9dac3 commit 3e5fa22

File tree

10 files changed

+25
-56
lines changed

10 files changed

+25
-56
lines changed

Mizuame/Assets.xcassets/SettingsBackground.colorset/Contents.json

Lines changed: 0 additions & 38 deletions
This file was deleted.

Mizuame/ContentView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ struct ContentView: View {
301301
VStack {
302302
if #available(macOS 14, *) {
303303
TextEditor(text: $stickyText)
304+
.padding(EdgeInsets(top: 5, leading: 1, bottom: 0, trailing: 1))
304305
.onChange(of: stickyText) { oldVal, newVal in
305306

306307
_ = redoUndoManager.snapshot(of: newVal)
@@ -326,6 +327,7 @@ struct ContentView: View {
326327
}
327328
} else {
328329
TextEditor(text: $stickyText)
330+
.padding(EdgeInsets(top: 5, leading: 1, bottom: 0, trailing: 1))
329331
.onChange(of: stickyText) { val in
330332

331333
_ = redoUndoManager.snapshot(of: val)

Mizuame/Settings/SettingsView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ struct SettingsView: View {
1616

1717
var body: some View {
1818
ZStack {
19-
Color("SettingsBackground")
20-
2119
if #available(macOS 14, *) {
2220
MainTabViewMacOS14orNewer()
2321
} else {

Mizuame/Settings/StickyNotePreview.swift

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,20 +78,17 @@ struct StickyNotePreview: View {
7878
.frame(width: width, height: height / 6)
7979

8080
Text("settings.tab.stickynote.window.preview.messagebar")
81-
.frame(width: width, height: height / 6)
81+
.frame(width: width * 0.95, height: height / 6)
8282
.font(.system(size: CGFloat(fontSize)))
8383
.foregroundColor(Color(message))
8484
.background(Color(messagebar))
85-
85+
.padding(5)
86+
8687
Text("settings.tab.stickynote.window.preview.stickynote")
87-
.frame(width: width, height: height * 3 / 6)
88+
.frame(width: width * 0.95, height: height * 3.35 / 6)
8889
.font(.system(size: CGFloat(fontSize)))
8990
.foregroundColor(Color(bodyForeground))
9091
.background(Color(bodyBackground))
91-
92-
Rectangle()
93-
.fill(Color(bodyFrame))
94-
.frame(width: width, height: height / 6)
9592
}
9693
}
9794
.overlay {

Mizuame/Settings/TabGeneral.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ struct TabGeneral: View {
1616

1717
@AppStorage(SettingKeys.StickyNote().keyPinNote) private var isPinNote: Bool = SettingKeys.StickyNote().initialPinNote
1818

19-
@AppStorage(SettingKeys.StickyNote().keyLoginItems) private var isEnableLoginItems: Bool = SettingKeys.StickyNote().initialLoginItems
20-
2119
@AppStorage(SettingKeys.StickyNote.NoteFontColor.Theme().key) private var isApplyThemeColorToFont: Bool = SettingKeys.StickyNote.NoteFontColor.Theme().initialVale
2220

2321
@AppStorage(SettingKeys.StickyNote.NoteFontColor.Black().key) private var isApplyBlackColorToFont: Bool = SettingKeys.StickyNote.NoteFontColor.Black().initialVale
@@ -30,6 +28,9 @@ struct TabGeneral: View {
3028

3129
@AppStorage(SettingKeys.StickyNote().keyPositionOfRoundsDecimalPoint) private var positionOfRoundsDecimalPoint: Int = SettingKeys.StickyNote().initialPositionOfRoundsDecimalPoint
3230

31+
@State private var isEnableLoginItems: Bool = false
32+
33+
3334
var body: some View {
3435
VStack(alignment: .center) {
3536
VStack(alignment: .leading, spacing: 30) {
@@ -74,6 +75,9 @@ struct TabGeneral: View {
7475
})
7576
}
7677
}
78+
.onAppear {
79+
isEnableLoginItems = (SMAppService.mainApp.status == .enabled)
80+
}
7781
}
7882
}
7983

Mizuame/Settings/TabInfo.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct TabInfo: View {
3030
}
3131

3232
VStack(alignment: .leading, spacing: 5) {
33-
Text("Version: 1.2.2").font(.body)
33+
Text("Version: 1.2.3").font(.body)
3434
Text("License: MIT license").font(.body)
3535
HStack {
3636
Text("settings.tab.info.src").font(.body)

Mizuame/Settings/TabStickyNote.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct TabStickyNote: View {
111111
ThemePalette(message: $messageTheme, messagebar: $messagebarTheme, bodyForeground: $bodyForegroundTheme, bodyBackground: $bodyBackgroundTheme, bodyFrame: $frameTheme)
112112
.padding(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 20))
113113

114-
Spacer()
114+
Spacer(minLength: 20)
115115

116116
HStack {
117117
Text("settings.tab.stickynote.reset.title")

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,23 @@ What is NOT SO GOOD point about the Mizuame?
2323
- https://github.com/3colorr/Mizuame-pages
2424

2525
# Branch
26-
- main
27-
- Releases.
28-
- Others
29-
- Development.
26+
- `main` branch
27+
- Represents the stable and productioin-ready code.
28+
- `v*.*.*` branch
29+
- Represents the development code.
3030
- It likely contain errors.
31+
- The branch will be delete when it is merged to `main` branch.
32+
- Others branch
33+
- Represents the development and bugfix code.
34+
- It likely contain many errors.
35+
- The branch will be delete when it is merged to `v*.*.*` branch.
3136

3237
# Install
3338
- [x] AppStore
34-
- Search for "Mizuame"
39+
- See https://3colorr.github.io/Mizuame-pages/#install
3540
- [x] Build it yourself
3641
- `git clone` -> Build by Xcode
42+
- See also https://3colorr.github.io/Mizuame-pages/#install
3743

3844
# Sample
3945
<div align="center" style="display: flex;">

sample-dark.png

-79.1 KB
Loading

sample-light.png

-93.7 KB
Loading

0 commit comments

Comments
 (0)