Skip to content
Snippets Groups Projects
Commit 749cf9ce authored by hannes's avatar hannes
Browse files

decreased padding to somewhat tackle #310

parent 5ae40170
No related branches found
No related tags found
1 merge request!85Thesis Hannes Staging
......@@ -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 {
......
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment