commit f48b2bd057841488d99c4f75591592d79e20ebde
Author: Leszek Koltunski <leszek@koltunski.pl>
Date:   Fri Nov 14 23:20:00 2025 +0100

    progress with remembering solves.

diff --git a/src/main/java/org/distorted/main/MainSolvesPopup.java b/src/main/java/org/distorted/main/MainSolvesPopup.java
index af3260f2..0d311547 100644
--- a/src/main/java/org/distorted/main/MainSolvesPopup.java
+++ b/src/main/java/org/distorted/main/MainSolvesPopup.java
@@ -10,6 +10,8 @@
 package org.distorted.main;
 
 import android.content.Context;
+import android.content.res.Resources;
+import android.graphics.drawable.ColorDrawable;
 import android.util.TypedValue;
 import android.view.Gravity;
 import android.view.LayoutInflater;
@@ -58,8 +60,8 @@ public class MainSolvesPopup
     mPopup = new PopupWindow(act);
     mPopup.setContentView(layout);
     mPopup.setFocusable(true);
-    mLayout= layout.findViewById(R.id.dialog_scrollable_main_layout);
 
+    mLayout= layout.findViewById(R.id.dialog_scrollable_main_layout);
     fillLayout(act,array);
     }
 
@@ -83,7 +85,7 @@ public class MainSolvesPopup
         {
         JSONObject object = array.getJSONObject(s);
         long time = object.getLong("time");
-        View pane = createOldPane(act, time, pL, pT);
+        View pane = createOldPane(act, s, time, pL, pT);
         mLayout.addView(pane);
         }
       }
@@ -114,7 +116,7 @@ public class MainSolvesPopup
 
 ///////////////////////////////////////////////////////////////////////////////////////////////////
 
-  private View createOldPane(MainActivity act, long time, LinearLayout.LayoutParams pView, LinearLayout.LayoutParams pText)
+  private View createOldPane(MainActivity act, int index, long time, LinearLayout.LayoutParams pView, LinearLayout.LayoutParams pText)
     {
     View view = act.getLayoutInflater().inflate(R.layout.dialog_solve_old_pane, null);
     TextView title = view.findViewById(R.id.solves_pane_title);
@@ -143,7 +145,7 @@ public class MainSolvesPopup
         @Override
         public void onClick(View v)
           {
-          android.util.Log.e("D", "DELETE");
+          mLayout.removeViewAt(index);
           }
         });
 
diff --git a/src/main/res/layout/dialog_scrollable_solves.xml b/src/main/res/layout/dialog_scrollable_solves.xml
index 18d599e6..835d69c3 100644
--- a/src/main/res/layout/dialog_scrollable_solves.xml
+++ b/src/main/res/layout/dialog_scrollable_solves.xml
@@ -13,7 +13,7 @@
         android:id="@+id/dialog_scrollable_main_layout"
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:background="?veryDarkC"
+        android:backgroundTint="?darkC"
         android:orientation="vertical">
     </LinearLayout>
 
diff --git a/src/main/res/layout/dialog_solve_new_pane.xml b/src/main/res/layout/dialog_solve_new_pane.xml
index 181fed2e..00933ad9 100644
--- a/src/main/res/layout/dialog_solve_new_pane.xml
+++ b/src/main/res/layout/dialog_solve_new_pane.xml
@@ -36,7 +36,7 @@
              android:id="@+id/solves_pane_play"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
-             android:backgroundTint="?veryDarkC"
+             android:backgroundTint="?darkC"
              android:insetTop="0dp"
              android:insetBottom="0dp"
              android:text="@string/play"/>
diff --git a/src/main/res/layout/dialog_solve_old_pane.xml b/src/main/res/layout/dialog_solve_old_pane.xml
index ac4e6802..3ae41a5a 100644
--- a/src/main/res/layout/dialog_solve_old_pane.xml
+++ b/src/main/res/layout/dialog_solve_old_pane.xml
@@ -53,7 +53,7 @@
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1.0"
-             android:backgroundTint="?veryDarkC"
+             android:backgroundTint="?darkC"
              android:insetTop="0dp"
              android:text="@string/delete"/>
 
@@ -62,7 +62,7 @@
              android:layout_width="match_parent"
              android:layout_height="0dp"
              android:layout_weight="1.0"
-             android:backgroundTint="?veryDarkC"
+             android:backgroundTint="?darkC"
              android:insetBottom="0dp"
              android:text="@string/resume"/>
 
