Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a25f320b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Reduce notif expander padding by 1dp" into main

parents 9120890c 05f5a2d7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -441,10 +441,10 @@
    <dimen name="notification_expand_button_pill_height">24dp</dimen>

    <!-- the height of the expand button pill (2025 redesign version) -->
    <dimen name="notification_2025_expand_button_pill_height">20dp</dimen>
    <dimen name="notification_2025_expand_button_pill_height">18dp</dimen>

    <!-- the width of the expand button pill (2025 redesign version) -->
    <dimen name="notification_2025_expand_button_pill_width">28dp</dimen>
    <dimen name="notification_2025_expand_button_pill_width">26dp</dimen>

    <!-- the size of the expand arrow (2025 redesign version) -->
    <dimen name="notification_2025_expand_button_icon_size">16sp</dimen>
@@ -453,13 +453,13 @@
    <dimen name="notification_expand_button_icon_padding">2dp</dimen>

    <!-- the padding of the expand icon in the notification header -->
    <dimen name="notification_2025_expand_button_vertical_icon_padding">2dp</dimen>
    <dimen name="notification_2025_expand_button_vertical_icon_padding">1dp</dimen>

    <!-- the padding of the expand icon in the notification header -->
    <dimen name="notification_2025_expand_button_horizontal_icon_padding">6dp</dimen>
    <dimen name="notification_2025_expand_button_horizontal_icon_padding">5dp</dimen>

    <!-- smaller padding for the end of the expand icon, for use when showing the number -->
    <dimen name="notification_2025_expand_button_reduced_end_padding">4dp</dimen>
    <dimen name="notification_2025_expand_button_reduced_end_padding">3dp</dimen>

    <!-- the space needed between the expander pill and the large icon when visible -->
    <dimen name="notification_2025_expand_button_right_icon_spacing">8dp</dimen>
+4 −4
Original line number Diff line number Diff line
@@ -110,10 +110,10 @@ fun ContentScope.ExpansionControl(
            verticalAlignment = Alignment.CenterVertically,
            modifier =
                Modifier.padding(
                    top = 2.dp,
                    bottom = 2.dp,
                    start = 6.dp,
                    end = if (shouldShowNumber) 4.dp else 6.dp,
                    top = 1.dp,
                    bottom = 1.dp,
                    start = 5.dp,
                    end = if (shouldShowNumber) 3.dp else 5.dp,
                ),
        ) {
            val iconSizeDp = with(LocalDensity.current) { 16.sp.toDp() }
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ internal fun Expander(expanded: Boolean, modifier: Modifier = Modifier, numberTo
    Box(modifier = modifier.background(surfaceColor, RoundedCornerShape(100.dp))) {
        Row(
            verticalAlignment = Alignment.CenterVertically,
            modifier = Modifier.padding(vertical = 2.dp, horizontal = 6.dp),
            modifier = Modifier.padding(vertical = 1.dp, horizontal = 5.dp),
        ) {
            val iconSizeDp = with(LocalDensity.current) { 16.sp.toDp() }