Browse Source

Color changes. Info panel, legend panel and for some text

Jon Mårtensson 5 years ago
parent
commit
01064dcbbe
1 changed files with 6 additions and 8 deletions
  1. 6 8
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 6 - 8
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -204,12 +204,11 @@ extension Home {
                     header
                     header
                         .frame(maxHeight: 70)
                         .frame(maxHeight: 70)
                         .padding(.top, geo.safeAreaInsets.top)
                         .padding(.top, geo.safeAreaInsets.top)
-                        .background(Color.backgroundColor)
-                    //  .background(Color.gray.opacity(0.2))
+                        .background(Color.gray.opacity(0.05))
+                        //  .background(Color.gray.opacity(0.2))
                     Divider().background(Color.gray) // Added 29/4
                     Divider().background(Color.gray) // Added 29/4
                     infoPanal
                     infoPanal
-                        .background(Color.secondary.opacity(0.05))
-                    // Divider().background(Color.gray) // Added 29/4
+                        .background(Color.backgroundColor)
                     MainChartView(
                     MainChartView(
                         glucose: $viewModel.glucose,
                         glucose: $viewModel.glucose,
                         suggestion: $viewModel.suggestion,
                         suggestion: $viewModel.suggestion,
@@ -230,11 +229,10 @@ extension Home {
                     .modal(for: .dataTable, from: self)
                     .modal(for: .dataTable, from: self)
                     Divider().background(Color.gray) // Added 29/4
                     Divider().background(Color.gray) // Added 29/4
                     legendPanal
                     legendPanal
-                        .background(Color.secondary.opacity(0.05))
-                    Divider().background(Color.gray) // Added 29/4
+                        .background(Color.backgroundColor)
+                    Divider().background(Color.gray)
                     ZStack {
                     ZStack {
-                        Rectangle().fill(Color.backgroundColor)
-                            .frame(height: 50 + geo.safeAreaInsets.bottom)
+                        Rectangle().fill(Color.gray.opacity(0.05)).frame(height: 50 + geo.safeAreaInsets.bottom)
                         HStack {
                         HStack {
                             Button { viewModel.showModal(for: .addCarbs) }
                             Button { viewModel.showModal(for: .addCarbs) }
                             label: {
                             label: {