Skip to content

Commit

Permalink
design update
Browse files Browse the repository at this point in the history
- fix do dropdown size
- change to color wheel order
  • Loading branch information
fr3ts0n committed Dec 13, 2021
1 parent 2f0497e commit 7c63a6d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions androbd/src/main/java/com/fr3ts0n/ecu/gui/androbd/ColorAdapter.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.fr3ts0n.ecu.gui.androbd;

import android.content.Context;
import android.graphics.Color;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
Expand All @@ -22,24 +21,25 @@ public class ColorAdapter
*/
static final Integer[] colors =
{
Color.LTGRAY,
Color.DKGRAY,
Color.RED,
Color.BLUE,
Color.GREEN,
Color.GRAY,
Color.CYAN,
Color.parseColor("#FF000080"), // navy
Color.YELLOW,
Color.parseColor("#FF00FFFF"), // aqua
Color.parseColor("#FFFF00FF"), // fuchsia
Color.parseColor("#FF800000"), // maroon
Color.parseColor("#FF00FF00"), // lime
Color.MAGENTA,
Color.parseColor("#FF808000"), // olive
Color.parseColor("#FF800080"), // purple
Color.parseColor("#FFC0C0C0"), // silver
Color.parseColor("#FF008080"), // teal
0xFFF44336, // RED 500
0xFFE91E63, // PINK 500
0xFFFF2C93, // LIGHT PINK 500
0xFF9C27B0, // PURPLE 500
0xFF673AB7, // DEEP PURPLE 500
0xFF3F51B5, // INDIGO 500
0xFF2196F3, // BLUE 500
0xFF03A9F4, // LIGHT BLUE 500
0xFF00BCD4, // CYAN 500
0xFF009688, // TEAL 500
0xFF4CAF50, // GREEN 500
0xFF8BC34A, // LIGHT GREEN 500
0xFFCDDC39, // LIME 500
0xFFFFEB3B, // YELLOW 500
0xFFFFC107, // AMBER 500
0xFFFF9800, // ORANGE 500
0xFF795548, // BROWN 500
0xFF607D8B, // BLUE GREY 500
0xFF9E9E9E, // GREY 500
};

public ColorAdapter(Context context, int resource)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected void onCreate(Bundle savedInstanceState)
btnReset.setOnClickListener(resetClicked);

// Color selection
colorAdapter = new ColorAdapter(this, android.R.layout.simple_spinner_item);
colorAdapter = new ColorAdapter(this, android.R.layout.simple_spinner_dropdown_item);
spColor = findViewById(R.id.pid_color);
spColor.setAdapter(colorAdapter);
spColor.setOnItemSelectedListener(colorSelected);
Expand Down

0 comments on commit 7c63a6d

Please sign in to comment.