Skip to content

Commit

Permalink
feat(mobile): bigger header buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Feb 26, 2025
1 parent 6fafbcb commit 3ab1c5a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/mobile/src/lib/dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ class DialogStatic {
text={props.confirmText ?? "Confirm"}
type="confirm"
className={props.variant === "destructive" ? "bg-red" : "bg-accent"}
textClassName="text-white"
/>
</View>
</DialogDynamicButtonActionProvider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function FeedShareAction({ params }: { params: any }) {
return (
<UIBarButton
label="Share"
normalIcon={<Share3CuteReIcon height={20} width={20} color={label} />}
normalIcon={<Share3CuteReIcon height={24} width={24} color={label} />}
onPress={() => {
const feed = getFeed(feedId)
if (!feed) return
Expand Down
4 changes: 2 additions & 2 deletions apps/mobile/src/modules/screen/action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function HomeSharedRightAction(props: PropsWithChildren) {

<UIBarButton
label="Mark All as Read"
normalIcon={<CheckCircleCuteReIcon height={20} width={20} color={accentColor} />}
normalIcon={<CheckCircleCuteReIcon height={24} width={24} color={accentColor} />}
onPress={() => {
Dialog.show(MarkAllAsReadDialog)
}}
Expand All @@ -57,7 +57,7 @@ interface HeaderActionButtonProps {

const useButtonVariant = ({ variant = "primary" }: HeaderActionButtonProps) => {
const label = useColor("label")
const size = 20
const size = 24
const color = variant === "primary" ? accentColor : label
return { size, color }
}
Expand Down

0 comments on commit 3ab1c5a

Please sign in to comment.