From 749cf9ce46ad819da5dde900479a5bdbeae3a3be Mon Sep 17 00:00:00 2001 From: hannes <hannes@gfzdfuz.de> Date: Thu, 10 Jun 2021 20:26:34 +0200 Subject: [PATCH] decreased padding to somewhat tackle #310 --- enzevalos_iphone/StudySettings.swift | 3 ++- .../Inbox/categorized/Helpers/UI/CategoryViewInner.swift | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/enzevalos_iphone/StudySettings.swift b/enzevalos_iphone/StudySettings.swift index dd0c417f..fcd1df89 100644 --- a/enzevalos_iphone/StudySettings.swift +++ b/enzevalos_iphone/StudySettings.swift @@ -54,7 +54,8 @@ class StudySettings { static var invitationsmode: Inviation = Inviation.load() as! Inviation /// whether to show a normal inbox (false) or a (currently slightly buggy) categorized interface (true) - static var showCategorizedInterface = false + static var showCategorizedInterface = false //|| true + static var categorizedInterface_flat = false || true static var useAvatars = true public static var invitationEnabled: Bool { diff --git a/enzevalos_iphone/SwiftUI/Inbox/categorized/Helpers/UI/CategoryViewInner.swift b/enzevalos_iphone/SwiftUI/Inbox/categorized/Helpers/UI/CategoryViewInner.swift index 0b142b55..efb52a4c 100644 --- a/enzevalos_iphone/SwiftUI/Inbox/categorized/Helpers/UI/CategoryViewInner.swift +++ b/enzevalos_iphone/SwiftUI/Inbox/categorized/Helpers/UI/CategoryViewInner.swift @@ -34,7 +34,7 @@ struct CategoryViewInner<Content:View>: View { isOpen : category.isActive ){ content() - }.padding(.horizontal, 15).padding(.top, 10) + }.padding(.horizontal, 7).padding(.top, StudySettings.categorizedInterface_flat ? 5 : 10) .animation(.easeInOut) } } @@ -93,7 +93,10 @@ struct NavigatorCard<Content:View> : View { var body: some View { if _size != nil && isResizable { - DragResizableCard(shadowElevation: 15, padding:0, height:size){ + DragResizableCard( + shadowElevation: StudySettings.categorizedInterface_flat ? 0 : 15, + effect3D: StudySettings.categorizedInterface_flat ? 0 : 5, padding:0, height:size + ){ inner .padding(.bottom,5) } -- GitLab