HapeLee 3 месяцев назад
Родитель
Сommit
5e2cd67c53

+ 2 - 4
app/src/main/java/io/legado/app/ui/book/read/ReadBookMenuBar.kt

@@ -116,8 +116,7 @@ fun ReadBookMenuBar(
     } else {
         ReadBookMenuContent.Route(currentRoute)
     }
-    val dialogLikeRoute = currentRoute == ReadBookMenuRoute.TypographyConfig ||
-            currentRoute == ReadBookMenuRoute.InformationConfig ||
+    val dialogLikeRoute = currentRoute == ReadBookMenuRoute.InformationConfig ||
             currentRoute == ReadBookMenuRoute.PaddingConfig
     var readStylePage by remember { mutableIntStateOf(0) }
     val sliderDragState = remember { SliderDragState() }
@@ -347,8 +346,7 @@ private fun ReadBookMenuSurface(
         is ReadBookMenuContent.Route -> contentTarget.route
     }
     val expanded = route != ReadBookMenuRoute.Main
-    val dialogLikeRoute = route == ReadBookMenuRoute.TypographyConfig ||
-            route == ReadBookMenuRoute.InformationConfig ||
+    val dialogLikeRoute = route == ReadBookMenuRoute.InformationConfig ||
             route == ReadBookMenuRoute.PaddingConfig
     val density = LocalDensity.current
     val windowSize = LocalWindowInfo.current.containerSize

+ 0 - 6
app/src/main/java/io/legado/app/ui/widget/components/SelectionBottomBar.kt

@@ -167,12 +167,6 @@ fun SelectionBottomBar(
                             secondaryActions.forEach { action ->
                                 RoundDropdownMenuItem(
                                     text = action.text,
-                                    leadingIcon = {
-                                        AppIcon(
-                                            imageVector = action.icon,
-                                            contentDescription = null
-                                        )
-                                    },
                                     onClick = {
                                         action.onClick()
                                         showMenu = false