Skip to content

Commit

Permalink
feat: Update some widget icons
Browse files Browse the repository at this point in the history
  • Loading branch information
aikrq committed Oct 20, 2024
1 parent 4781c5a commit f67776d
Show file tree
Hide file tree
Showing 59 changed files with 275 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ public void onClick(View view) {
public void a(PaletteGroup group) {
imgGroup.setImageResource(group == PaletteGroup.BASIC ?
R.drawable.selector_palette_tab_ic_sketchware :
R.drawable.selector_palette_tab_ic_bookmark);
R.drawable.selector_palette_tab_ic_bookmark_filled);
setOnClickListener(this);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconCalendarView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_calendarview);
setWidgetImage(R.drawable.ic_calendar_today_24);
setWidgetName("CalendarView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconCheckBox(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_check_box);
setWidgetImage(R.drawable.ic_check_box_24);
setWidgetName("CheckBox");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconEditText(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_edit_text);
setWidgetImage(R.drawable.ic_text_fields_alt_24);
setWidgetName("EditText");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public IconImageView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_image_view);
setWidgetImage(R.drawable.ic_image_24);
setWidgetName("ImageView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconLinearHorizontal(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_linear_horizontal);
setWidgetImage(R.drawable.ic_view_column_24);
setWidgetName("Linear(H)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconLinearVertical(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_linear_vertical);
setWidgetImage(R.drawable.ic_table_rows_24);
setWidgetName("Linear(V)");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconListView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_list_view);
setWidgetImage(R.drawable.ic_view_list_24);
setWidgetName("ListView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconMapView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_google_map);
setWidgetImage(R.drawable.ic_map_24);
setWidgetName("MapView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconProgressBar(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_progress_bar);
setWidgetImage(R.drawable.ic_sliders_24);
setWidgetName("ProgressBar");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconSeekBar(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_seek_bar);
setWidgetImage(R.drawable.ic_switches_24);
setWidgetName("SeekBar");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconSwitch(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_switch);
setWidgetImage(R.drawable.ic_toggle_on_24);
setWidgetName("Switch");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconTextView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_text_view);
setWidgetImage(R.drawable.ic_text_fields_24);
setWidgetName("TextView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public IconWebView(Context context) {

public void a(Context context) {
super.a(context);
setWidgetImage(R.drawable.widget_web_view);
setWidgetImage(R.drawable.ic_public_24);
setWidgetName("WebView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconBottomNavigationView extends IconBase {

public IconBottomNavigationView(Context context) {
super(context);
setWidgetImage(R.drawable.widget_bottom_view);
setWidgetImage(R.drawable.ic_bottom_navigation_24);
setWidgetName("BottomNavigationView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconCodeView extends IconBase {

public IconCodeView(Context context) {
super(context);
setWidgetImage(R.drawable.widget_code_view);
setWidgetImage(R.drawable.ic_code_24);
setWidgetName("CodeView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconCollapsingToolbar extends IconBase {

public IconCollapsingToolbar(Context context) {
super(context);
setWidgetImage(R.drawable.widget_collapsing_toolbar);
setWidgetImage(R.drawable.ic_toolbar_24);
setWidgetName("CollapsingToolbar");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconRecyclerView extends IconBase {

public IconRecyclerView(Context context) {
super(context);
setWidgetImage(R.drawable.grid_3_48);
setWidgetImage(R.drawable.ic_view_list_24);
setWidgetName("RecyclerView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconSwipeRefreshLayout extends IconBase {

public IconSwipeRefreshLayout(Context context) {
super(context);
setWidgetImage(R.drawable.widget_swipe_refresh);
setWidgetImage(R.drawable.ic_refresh_24);
setWidgetName("SwipeRefreshLayout");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconTextInputLayout extends IconBase {

public IconTextInputLayout(Context context) {
super(context);
setWidgetImage(R.drawable.widget_edit_text);
setWidgetImage(R.drawable.ic_text_fields_alt_24);
setWidgetName("TextInputLayout");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconViewPager extends IconBase {

public IconViewPager(Context context) {
super(context);
setWidgetImage(R.drawable.widget_view_pager);
setWidgetImage(R.drawable.ic_view_carousel_24);
setWidgetName("ViewPager");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconAnalogClock extends IconBase {

public IconAnalogClock(Context context) {
super(context);
setWidgetImage(R.drawable.widget_timer);
setWidgetImage(R.drawable.ic_schedule_24);
setWidgetName("AnalogClock");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconAutoCompleteTextView extends IconBase {

public IconAutoCompleteTextView(Context context) {
super(context);
setWidgetImage(R.drawable.widget_edit_text);
setWidgetImage(R.drawable.ic_text_fields_alt_24);
setWidgetName("AutoCompleteTextView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class IconDatePicker extends IconBase {

public IconDatePicker(Context context) {
super(context);
setWidgetImage(R.drawable.date_span_96);
setWidgetImage(R.drawable.ic_calendar_today_24);
setWidgetName("DatePicker");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconDigitalClock extends IconBase {

public IconDigitalClock(Context context) {
super(context);
setWidgetImage(R.drawable.widget_timer);
setWidgetImage(R.drawable.ic_schedule_24);
setWidgetName("DigitalClock");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class IconGridView extends IconBase {

public IconGridView(Context context) {
super(context);
setWidgetImage(R.drawable.grid_3_48);
setWidgetImage(R.drawable.ic_view_list_24);
setWidgetName("GridView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconMultiAutoCompleteTextView extends IconBase {

public IconMultiAutoCompleteTextView(Context context) {
super(context);
setWidgetImage(R.drawable.widget_edit_text);
setWidgetImage(R.drawable.ic_text_fields_alt_24);
setWidgetName("MultiAutoCompleteTextView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconRadioButton extends IconBase {

public IconRadioButton(Context context) {
super(context);
setWidgetImage(R.drawable.widget_radio_button);
setWidgetImage(R.drawable.ic_radio_button_checked_24);
setWidgetName("RadioButton");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconRatingBar extends IconBase {

public IconRatingBar(Context context) {
super(context);
setWidgetImage(R.drawable.color_star_24);
setWidgetImage(R.drawable.ic_star_24);
setWidgetName("RatingBar");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class IconSearchView extends IconBase {

public IconSearchView(Context context) {
super(context);
setWidgetImage(R.drawable.ic_search_color_96dp);
setWidgetImage(R.drawable.ic_search_24);
setWidgetName("SearchView");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class IconTimePicker extends IconBase {

public IconTimePicker(Context context) {
super(context);
setWidgetImage(R.drawable.widget_timer);
setWidgetImage(R.drawable.ic_schedule_24);
setWidgetName("TimePicker");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class IconVideoView extends IconBase {

public IconVideoView(Context context) {
super(context);
setWidgetImage(R.drawable.widget_mediaplayer);
setWidgetImage(R.drawable.ic_movie_24);
setWidgetName("VideoView");
}

Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_bookmark_filled_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,840L200,200Q200,167 223.5,143.5Q247,120 280,120L680,120Q713,120 736.5,143.5Q760,167 760,200L760,840L480,720L200,840Z"/>
</vector>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@drawable/ic_bookmark_filled_24"
android:tint="?attr/colorOnPrimary" />
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_bottom_navigation_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,840Q167,840 143.5,816.5Q120,793 120,760L120,200Q120,167 143.5,143.5Q167,120 200,120L760,120Q793,120 816.5,143.5Q840,167 840,200L840,760Q840,793 816.5,816.5Q793,840 760,840L200,840ZM200,600L760,600L760,200Q760,200 760,200Q760,200 760,200L200,200Q200,200 200,200Q200,200 200,200L200,600Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_calendar_today_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,880Q167,880 143.5,856.5Q120,833 120,800L120,240Q120,207 143.5,183.5Q167,160 200,160L240,160L240,80L320,80L320,160L640,160L640,80L720,80L720,160L760,160Q793,160 816.5,183.5Q840,207 840,240L840,800Q840,833 816.5,856.5Q793,880 760,880L200,880ZM200,800L760,800Q760,800 760,800Q760,800 760,800L760,400L200,400L200,800Q200,800 200,800Q200,800 200,800ZM200,320L760,320L760,240Q760,240 760,240Q760,240 760,240L200,240Q200,240 200,240Q200,240 200,240L200,320ZM200,320L200,240Q200,240 200,240Q200,240 200,240L200,240Q200,240 200,240Q200,240 200,240L200,320Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_check_box_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M424,648L706,366L650,310L424,536L310,422L254,478L424,648ZM200,840Q167,840 143.5,816.5Q120,793 120,760L120,200Q120,167 143.5,143.5Q167,120 200,120L760,120Q793,120 816.5,143.5Q840,167 840,200L840,760Q840,793 816.5,816.5Q793,840 760,840L200,840Z"/>
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_code_24.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M193,481L348,636Q359,647 359,664Q359,681 348,692Q337,703 320,703Q303,703 292,692L108,508Q102,502 99.5,495Q97,488 97,480Q97,472 99.5,465Q102,458 108,452L292,268Q304,256 320.5,256Q337,256 349,268Q361,280 361,296.5Q361,313 349,325L193,481ZM767,479L612,324Q601,313 601,296Q601,279 612,268Q623,257 640,257Q657,257 668,268L852,452Q858,458 860.5,465Q863,472 863,480Q863,488 860.5,495Q858,502 852,508L668,692Q656,704 640,703.5Q624,703 612,691Q600,679 600,662.5Q600,646 612,634L767,479Z"/>
android:pathData="M320,720L80,480L320,240L377,297L193,481L376,664L320,720ZM640,720L583,663L767,479L584,296L640,240L880,480L640,720Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_image_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M200,840Q167,840 143.5,816.5Q120,793 120,760L120,200Q120,167 143.5,143.5Q167,120 200,120L760,120Q793,120 816.5,143.5Q840,167 840,200L840,760Q840,793 816.5,816.5Q793,840 760,840L200,840ZM240,680L720,680L570,480L450,640L360,520L240,680Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_map_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M600,840L360,756L174,828Q154,836 137,823.5Q120,811 120,790L120,230Q120,217 127.5,207Q135,197 148,192L360,120L600,204L786,132Q806,124 823,136.5Q840,149 840,170L840,730Q840,743 832.5,753Q825,763 812,768L600,840ZM560,742L560,274L400,218L400,686L560,742Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_movie_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M160,160L240,320L360,320L280,160L360,160L440,320L560,320L480,160L560,160L640,320L760,320L680,160L800,160Q833,160 856.5,183.5Q880,207 880,240L880,720Q880,753 856.5,776.5Q833,800 800,800L160,800Q127,800 103.5,776.5Q80,753 80,720L80,240Q80,207 103.5,183.5Q127,160 160,160Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_public_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880ZM440,798L440,720Q407,720 383.5,696.5Q360,673 360,640L360,600L168,408Q165,426 162.5,444Q160,462 160,480Q160,601 239.5,692Q319,783 440,798ZM716,696Q736,674 752,648.5Q768,623 778.5,595.5Q789,568 794.5,539Q800,510 800,480Q800,382 745.5,301Q691,220 600,184L600,200Q600,233 576.5,256.5Q553,280 520,280L440,280L440,360Q440,377 428.5,388.5Q417,400 400,400L320,400L320,480L560,480Q577,480 588.5,491.5Q600,503 600,520L600,640L640,640Q666,640 687,655.5Q708,671 716,696Z"/>
</vector>
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_radio_button_checked_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M480,680Q563,680 621.5,621.5Q680,563 680,480Q680,397 621.5,338.5Q563,280 480,280Q397,280 338.5,338.5Q280,397 280,480Q280,563 338.5,621.5Q397,680 480,680ZM480,880Q397,880 324,848.5Q251,817 197,763Q143,709 111.5,636Q80,563 80,480Q80,397 111.5,324Q143,251 197,197Q251,143 324,111.5Q397,80 480,80Q563,80 636,111.5Q709,143 763,197Q817,251 848.5,324Q880,397 880,480Q880,563 848.5,636Q817,709 763,763Q709,817 636,848.5Q563,880 480,880Z"/>
</vector>
Loading

0 comments on commit f67776d

Please sign in to comment.