diff options
author | 2025-03-20 08:57:59 -0700 | |
---|---|---|
committer | 2025-03-20 08:57:59 -0700 | |
commit | 2104427f6a1c16a013b7e4b0c9d37d4a40025e74 (patch) | |
tree | 9323d83134f96cc241af64d7cf2cbcbccdcd6665 /res | |
parent | c4cba7cd6b8a20b0a9a8d3e9dd78ff5cb0805f3b (diff) | |
parent | 84306355a7fdda207a7e74d430572447660580e7 (diff) |
Merge "Revert "[3F Tap] Radio Group VisD updates"" into main
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/touchpad_three_finger_tap_layout.xml | 55 | ||||
-rw-r--r-- | res/values/dimens.xml | 8 | ||||
-rw-r--r-- | res/values/strings.xml | 4 |
3 files changed, 24 insertions, 43 deletions
diff --git a/res/layout/touchpad_three_finger_tap_layout.xml b/res/layout/touchpad_three_finger_tap_layout.xml index 87746a418c4..7f96bf3d1ea 100644 --- a/res/layout/touchpad_three_finger_tap_layout.xml +++ b/res/layout/touchpad_three_finger_tap_layout.xml @@ -34,61 +34,46 @@ tools:ignore="UselessParent"> <RadioButton android:id="@+id/middle_click" android:layout_width="wrap_content" - android:layout_height="@dimen/three_finger_tap_radio_button_height" - android:layout_margin="@dimen/pointer_stroke_style_padding" - android:gravity="center_vertical" - android:paddingTop="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingBottom="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingStart="@dimen/three_finger_tap_radio_button_text_padding" - android:fontFamily="@*android:string/config_headlineFontFamily" + android:layout_height="wrap_content" + android:layout_margin="@dimen/radio_group_style_padding" + android:paddingStart="@dimen/radio_group_style_text_padding" + android:paddingEnd="@dimen/radio_group_style_text_padding" android:text="@string/three_finger_tap_middle_click" android:textSize="20sp" android:textAppearance="?android:attr/textAppearanceListItem" /> <RadioButton android:id="@+id/launch_gemini" android:layout_width="wrap_content" - android:layout_height="@dimen/three_finger_tap_radio_button_height" - android:layout_margin="@dimen/pointer_stroke_style_padding" - android:gravity="center_vertical" - android:paddingTop="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingBottom="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingStart="@dimen/three_finger_tap_radio_button_text_padding" - android:fontFamily="@*android:string/config_headlineFontFamily" + android:layout_height="wrap_content" + android:layout_margin="@dimen/radio_group_style_padding" + android:paddingStart="@dimen/radio_group_style_text_padding" + android:paddingEnd="@dimen/radio_group_style_text_padding" android:text="@string/three_finger_tap_launch_gemini" android:textSize="20sp" android:textAppearance="?android:attr/textAppearanceListItem" /> <RadioButton android:id="@+id/go_home" android:layout_width="wrap_content" - android:layout_height="@dimen/three_finger_tap_radio_button_height" - android:layout_margin="@dimen/pointer_stroke_style_padding" - android:gravity="center_vertical" - android:paddingTop="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingBottom="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingStart="@dimen/three_finger_tap_radio_button_text_padding" - android:fontFamily="@*android:string/config_headlineFontFamily" + android:layout_height="wrap_content" + android:layout_margin="@dimen/radio_group_style_padding" + android:paddingStart="@dimen/radio_group_style_text_padding" + android:paddingEnd="@dimen/radio_group_style_text_padding" android:text="@string/three_finger_tap_go_home" android:textSize="20sp" android:textAppearance="?android:attr/textAppearanceListItem" /> <RadioButton android:id="@+id/go_back" android:layout_width="wrap_content" - android:layout_height="@dimen/three_finger_tap_radio_button_height" - android:layout_margin="@dimen/pointer_stroke_style_padding" - android:gravity="center_vertical" - android:paddingTop="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingBottom="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingStart="@dimen/three_finger_tap_radio_button_text_padding" - android:fontFamily="@*android:string/config_headlineFontFamily" + android:layout_height="wrap_content" + android:layout_margin="@dimen/radio_group_style_padding" + android:paddingStart="@dimen/radio_group_style_text_padding" + android:paddingEnd="@dimen/radio_group_style_text_padding" android:text="@string/three_finger_tap_go_back" android:textSize="20sp" android:textAppearance="?android:attr/textAppearanceListItem" /> <RadioButton android:id="@+id/recent_apps" android:layout_width="wrap_content" - android:layout_height="@dimen/three_finger_tap_radio_button_height" - android:layout_margin="@dimen/pointer_stroke_style_padding" - android:gravity="center_vertical" - android:paddingTop="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingBottom="@dimen/three_finger_tap_radio_button_vertical_padding" - android:paddingStart="@dimen/three_finger_tap_radio_button_text_padding" - android:fontFamily="@*android:string/config_headlineFontFamily" + android:layout_height="wrap_content" + android:layout_margin="@dimen/radio_group_style_padding" + android:paddingStart="@dimen/radio_group_style_text_padding" + android:paddingEnd="@dimen/radio_group_style_text_padding" android:text="@string/three_finger_tap_recent_apps" android:textSize="20sp" android:textAppearance="?android:attr/textAppearanceListItem" /> diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 732f938a911..1690361db3d 100644 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -181,12 +181,6 @@ <dimen name="keyboard_picker_radius">28dp</dimen> <dimen name="keyboard_picker_text_size">16sp</dimen> - <!-- Touchpad 3 finger tap --> - <dimen name="radio_group_style_padding">8dp</dimen> - <dimen name="three_finger_tap_radio_button_vertical_padding">24dp</dimen> - <dimen name="three_finger_tap_radio_button_text_padding">15dp</dimen> - <dimen name="three_finger_tap_radio_button_height">56dp</dimen> - <!-- Pointer --> <dimen name="pointer_fill_container_height">80dp</dimen> <dimen name="pointer_fill_container_max_width">344dp</dimen> @@ -217,6 +211,8 @@ <dimen name="pointer_scale_padding">8dp</dimen> <item name="pointer_scale_size_start" format="float" type="dimen">1.0</item> <item name="pointer_scale_size_end" format="float" type="dimen">2.5</item> + <dimen name="radio_group_style_padding">8dp</dimen> + <dimen name="radio_group_style_text_padding">21dp</dimen> <!-- RemoteAuth--> <dimen name="remoteauth_fragment_padding_horizontal">40dp</dimen> diff --git a/res/values/strings.xml b/res/values/strings.xml index 4d6e55da329..4d1c409f8fb 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -4926,8 +4926,8 @@ <string name="keywords_touchpad">trackpad, track pad, mouse, cursor, scroll, swipe, right click, click, pointer</string> <!-- Search keywords for 'Bottom-right tap', the name of the touchpad setting that allows the user to click the bottom right corner of the touchpad for more options. --> <string name="keywords_trackpad_bottom_right_tap">right click, tap</string> - <!-- Radio button text for 'mouse middle click button' action. This is one of multiple actions the user can select from the three finger tap customization radio group. The action if selected will act as a middle-click when a three-finger tap is performed on a touchpad. [CHAR LIMIT=35] --> - <string name="three_finger_tap_middle_click">Mouse middle click button</string> + <!-- Radio button text for 'middle click' action. This is one of multiple actions the user can select from the three finger tap customization radio group. The action if selected will act as a middle-click when a three-finger tap is performed on a touchpad. [CHAR LIMIT=35] --> + <string name="three_finger_tap_middle_click">Middle click</string> <!-- Radio button text for 'launch assistant' action. This is one of multiple actions the user can select from the three finger tap customization radio group. The action if selected will launch the Assistant when a three-finger tap is performed on a touchpad. [CHAR LIMIT=35] --> <string name="three_finger_tap_launch_gemini">Launch Assistant</string> <!-- Radio button text for 'Go home' action. This is one of multiple actions the user can select from the three finger tap customization radio group. The action if selected will take the user home when a three-finger tap is performed on a touchpad. [CHAR LIMIT=35] --> |