|
|
@@ -1608,11 +1608,25 @@ export struct LocalMusic {
|
|
|
if (index <= 3) {
|
|
|
popupPosition = PopupPosition.BOTTOM
|
|
|
}
|
|
|
- let pup = XPopup.Builder()
|
|
|
- .setPopupPosition(popupPosition)
|
|
|
- .atView(id)
|
|
|
- .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
- .show()
|
|
|
+ let pup:XPopup
|
|
|
+ if(this.isDarkMode){
|
|
|
+ pup = XPopup.Builder()
|
|
|
+ .setPopupPosition(popupPosition)
|
|
|
+ .atView(id)
|
|
|
+ .setBackgroundColor(Color.Black)
|
|
|
+ .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
+ .show()
|
|
|
+
|
|
|
+ }else {
|
|
|
+ pup = XPopup.Builder()
|
|
|
+ .setPopupPosition(popupPosition)
|
|
|
+ .atView(id)
|
|
|
+ .setBackgroundColor(Color.White)
|
|
|
+ .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
+ .show()
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -1664,11 +1678,27 @@ export struct LocalMusic {
|
|
|
if (index <= 3) {
|
|
|
popupPosition = PopupPosition.BOTTOM
|
|
|
}
|
|
|
- let pup = XPopup.Builder()
|
|
|
- .setPopupPosition(popupPosition)
|
|
|
- .atView(id)
|
|
|
- .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
- .show()
|
|
|
+ // let pup = XPopup.Builder()
|
|
|
+ // .setPopupPosition(popupPosition)
|
|
|
+ // .atView(id)
|
|
|
+ // .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
+ // .show()
|
|
|
+ let pup:XPopup
|
|
|
+ if (this.isDarkMode) {
|
|
|
+ pup = XPopup.Builder()
|
|
|
+ .setPopupPosition(popupPosition)
|
|
|
+ .atView(id)
|
|
|
+ .setBackgroundColor(Color.Black)
|
|
|
+ .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
+ .show();
|
|
|
+ }else {
|
|
|
+ pup = XPopup.Builder()
|
|
|
+ .setPopupPosition(popupPosition)
|
|
|
+ .atView(id)
|
|
|
+ .setBackgroundColor(Color.White)
|
|
|
+ .asBubble(wrapBuilder(cutPopupBuilder), dataBean)
|
|
|
+ .show();
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|