Skip to content

Commit

Permalink
UI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
liang2kl committed May 16, 2021
1 parent 1f3553c commit e5b6cbc
Show file tree
Hide file tree
Showing 7 changed files with 91 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Source/Hollow.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Hollow/Hollow.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 48;
CURRENT_PROJECT_VERSION = 50;
DEVELOPMENT_TEAM = C5UH93T368;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = Hollow/Info.plist;
Expand All @@ -1887,7 +1887,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Hollow/Hollow.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 48;
CURRENT_PROJECT_VERSION = 50;
DEVELOPMENT_TEAM = C5UH93T368;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = Hollow/Info.plist;
Expand Down
78 changes: 78 additions & 0 deletions Source/Hollow.xcodeproj/xcshareddata/xcschemes/HollowMac.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0EC244C1263400C5001AFC4B"
BuildableName = "HollowMac.app"
BlueprintName = "HollowMac"
ReferencedContainer = "container:Hollow.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0EC244C1263400C5001AFC4B"
BuildableName = "HollowMac.app"
BlueprintName = "HollowMac"
ReferencedContainer = "container:Hollow.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "0EC244C1263400C5001AFC4B"
BuildableName = "HollowMac.app"
BlueprintName = "HollowMac"
ReferencedContainer = "container:Hollow.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ struct _HollowHeaderView<MenuContent: View>: View {
resolution: 6,
padding: body37 * 0.1,
hashValue: postData.hash,
name: String(postData.postId.string.last ?? " ")
name: String(postData.postId.string.last ?? " "),
options: .forceGraphical
)
// Scale the avatar relative to the font scaling.
.frame(width: body37, height: body37)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ struct HollowCommentContentView: View {
}

if let commentInfo = commentData.replyToCommentInfo, !compact {
let nameText = Text(verbatim: "\(commentInfo.name) ").bold()
let nameText = Text(verbatim: "\(commentInfo.name): ").bold()
Group {
if commentInfo.text != "" {
nameText + Text(commentInfo.text)
Expand All @@ -101,12 +101,12 @@ struct HollowCommentContentView: View {
.dynamicFont(size: 14)
.lineLimit(3)
.lineSpacing(0.8)
.padding(4)
.padding(4.5)
.padding(.horizontal, 2)
.foregroundColor(.hollowCommentQuoteText)
.background(Color.hollowCommentQuoteText.opacity(0.09))
.cornerRadius(3)
.padding(.vertical, 2)
.cornerRadius(4)
.padding(.vertical, 4)
.makeButton(action: { jumpToReplyingHandler?() })
.buttonStyle(PlainButtonStyle())
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct HollowImageView: View {
.imageSaver(image: image, showSavePhotoAlert: $showSavePhotoAlert, savePhotoError: $savePhotoError)
} else {
ZStack {
Color.uiColor(.tertiarySystemFill).ignoresSafeArea()
Color.hollowCommentQuoteText.opacity(0.09).ignoresSafeArea()
Image(uiImage: image)
.resizable()
.interpolation(reduceImageQuality ? .none : .low)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ struct HollowInputAvatar: View {
resolution: 6,
padding: avatarWidth * 0.1,
hashValue: hash,
name: "N"
name: "N",
options: .forceGraphical
)

.frame(width: avatarWidth)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ struct HollowDetailView_iPad: View {
resolution: 6,
padding: avatarWidth * 0.1,
hashValue: postData.hash,
name: String(store.postDataWrapper.post.postId.string.last ?? " ")
name: String(store.postDataWrapper.post.postId.string.last ?? " "),
options: .forceGraphical
)
// Scale the avatar relative to the font scaling.
.frame(width: avatarWidth, height: avatarWidth)
Expand Down

0 comments on commit e5b6cbc

Please sign in to comment.