Skip to content

Commit aed9e02

Browse files
Removed default tint from menu placeholder
1 parent 6be420d commit aed9e02

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

BottomSheetMenu/src/main/java/com/buggysofts/bottomsheetmenu/BottomSheetMenu.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class BottomSheetMenu {
7575
* <br><br>
7676
* Defaults:
7777
* <br>- Text color: <b>Primary text color (<i>?android:attr/textColorPrimary</i>)</b>)
78-
* <br>- Menu icon tint: <b>Theme default accent color (<i>?android:attr/colorAccent</i>)</b>
78+
* <br>- Menu icon tint: <b>No tints will be applied by default.</b>
7979
* <br>- Expand icon tint: <b>Theme default accent color (<i>?android:attr/colorAccent</i>)</b>
8080
* <br>- Menu background: <b>Theme default background (<i>?android:attr/colorBackground</i>)</b>
8181
* <br> You can also use the static getter methods to obtain the other default properties.

BottomSheetMenu/src/main/java/com/buggysofts/bottomsheetmenu/BottomSheetMenuAdapter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ public View getView(int position, @Nullable View convertView, @NonNull ViewGroup
137137
if (textColor != null) {
138138
holder.item_txt.setTextColor(textColor);
139139
} else {
140-
// will use default one
140+
// system default will be used
141141
}
142142
if (iconTint != null) {
143143
holder.item_icon.setColorFilter(iconTint);
144144
} else {
145-
// will use default one
145+
// no color filter will be applied
146146
}
147147
if (expandTint != null) {
148148
holder.item_expand.setColorFilter(expandTint);
149149
} else {
150-
// will use default one
150+
// no color filter will be applied
151151
}
152152
} else {
153153
// something is wrong - control should not be in here

BottomSheetMenu/src/main/res/layout/menu_item_node.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
android:id="@+id/item_icon"
1313
android:layout_width="24dp"
1414
android:layout_height="24dp"
15-
app:srcCompat="@drawable/ic_menu"
16-
app:tint="?android:attr/colorAccent" />
15+
app:srcCompat="@drawable/ic_menu" />
1716

1817
<TextView
1918
android:id="@+id/item_txt"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Finally, add this dependency to your app/module level build.gradle file
3434
3535
dependencies {
3636
...
37-
implementation 'com.github.buggysofts-com:BottomSheetMenu:v1.0.8'
37+
implementation 'com.github.buggysofts-com:BottomSheetMenu:v1.0.9'
3838
}
3939
```
4040
And you are done importing the library.

0 commit comments

Comments
 (0)