Commit 749cf9ce authored by hannes's avatar hannes
Browse files

decreased padding to somewhat tackle #310

parent 5ae40170
......@@ -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)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment