Skip to content

Commit

Permalink
update item more icon
Browse files Browse the repository at this point in the history
- remove unused icon
  • Loading branch information
zhwanng committed Nov 4, 2024
1 parent 4f39727 commit a27aa19
Show file tree
Hide file tree
Showing 50 changed files with 89 additions and 629 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public void setSelectType(RepoSelectType selectType, int selectedMaxCount) {

public Drawable getStarDrawable() {
if (null == starDrawable) {
int DP_16 = SizeUtils.dp2px(16);
starDrawable = ContextCompat.getDrawable(getContext(), R.drawable.baseline_star_24);
int DP_16 = SizeUtils.dp2px(12);
starDrawable = ContextCompat.getDrawable(getContext(), R.drawable.ic_star_32);
starDrawable.setBounds(0, 0, DP_16, DP_16);
starDrawable.setTint(ContextCompat.getColor(getContext(), R.color.light_grey));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private int getIconByColumnType(String type) {
case ColumnType.NUMBER:
return R.drawable.ic_number;
case ColumnType.RATE:
return R.drawable.ic_star2;
return R.drawable.ic_star_32;
case ColumnType.URL:
return R.drawable.ic_url;
case ColumnType.LINK:
Expand Down Expand Up @@ -642,7 +642,7 @@ private void parseRate(LinearLayout view, MetadataModel model) {
ColorStateList stateList = ColorStateList.valueOf(t);

ltr.setImageTintList(stateList);
ltr.setImageResource(R.drawable.ic_star2);
ltr.setImageResource(R.drawable.ic_star_32);

view.<FlexboxLayout>findViewById(R.id.flex_box).addView(ltr, flexLayoutParams);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.OptIn;
import androidx.lifecycle.Observer;
import androidx.lifecycle.ViewModelProvider;
import androidx.media3.common.util.UnstableApi;

import com.blankj.utilcode.util.ToastUtils;
import com.chad.library.adapter4.BaseQuickAdapter;
Expand All @@ -26,6 +28,7 @@
import com.seafile.seadroid2.SeafException;
import com.seafile.seadroid2.account.Account;
import com.seafile.seadroid2.account.SupportAccountManager;
import com.seafile.seadroid2.annotation.Unstable;
import com.seafile.seadroid2.bottomsheetmenu.BottomSheetHelper;
import com.seafile.seadroid2.bottomsheetmenu.BottomSheetMenuFragment;
import com.seafile.seadroid2.bottomsheetmenu.OnMenuClickListener;
Expand Down Expand Up @@ -125,7 +128,7 @@ private void initAdapter() {

});

adapter.addOnItemChildClickListener(R.id.item_action, new BaseQuickAdapter.OnItemChildClickListener<StarredModel>() {
adapter.addOnItemChildClickListener(R.id.expandable_toggle_button, new BaseQuickAdapter.OnItemChildClickListener<StarredModel>() {
@Override
public void onItemClick(@NonNull BaseQuickAdapter<StarredModel, ?> baseQuickAdapter, @NonNull View view, int i) {
showBottomSheet(adapter.getItems().get(i));
Expand Down Expand Up @@ -225,6 +228,7 @@ private void navTo(StarredModel starredModel) {
}
}

@OptIn(markerClass = Unstable.class)
private void open(StarredModel model) {
if (model.is_dir) {
MainActivity.navToThis(requireContext(), model.repo_id, model.repo_name, model.path, model.is_dir);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/color/selector_color_primary.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/fancy_orange" android:state_checked="true" />
<item android:color="@color/bar_icon_tint_color" android:state_checked="false" />
<item android:color="@color/bottom_bar_icon_tint_color" android:state_checked="false" />
</selector>
9 changes: 0 additions & 9 deletions app/src/main/res/drawable/baseline_star_24.xml

This file was deleted.

13 changes: 0 additions & 13 deletions app/src/main/res/drawable/color_preference_widget_background.xml

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/res/drawable/ic_star2.xml

This file was deleted.

9 changes: 9 additions & 0 deletions app/src/main/res/drawable/ic_star_32.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="32dp"
android:height="32dp"
android:viewportWidth="32"
android:viewportHeight="32">
<path
android:pathData="M16,1c0.5,0 1,0.3 1.2,0.8l3.9,8l8.7,1.3c0.5,0.1 0.9,0.4 1.1,0.9s0,1 -0.3,1.4l-6.3,6.3l1.5,8.8c0.1,0.5 -0.1,1 -0.6,1.3c-0.4,0.3 -1,0.3 -1.4,0.1L16,25.8l-7.8,4.2c-0.5,0.2 -1,0.2 -1.4,-0.1c-0.4,-0.3 -0.6,-0.8 -0.6,-1.3l1.5,-8.8l-6.3,-6.3C1,13 0.9,12.5 1.1,12s0.6,-0.8 1.1,-0.9l8.7,-1.3l3.9,-8C15,1.3 15.5,1 16,1z"
android:fillColor="#999999"/>
</vector>
17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_ae_colorful.xml

This file was deleted.

23 changes: 0 additions & 23 deletions app/src/main/res/drawable/icon_file_ai_colorful.xml

This file was deleted.

26 changes: 0 additions & 26 deletions app/src/main/res/drawable/icon_file_android_colorful.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_audio_colorful.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_calendar_colorful.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_code_colorful.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_csv_colorful.xml

This file was deleted.

17 changes: 0 additions & 17 deletions app/src/main/res/drawable/icon_file_excel_colorful.xml

This file was deleted.

Loading

0 comments on commit a27aa19

Please sign in to comment.