diff options
| author | Jules Aguillon | 2024-07-06 22:16:37 +0200 |
|---|---|---|
| committer | GitHub | 2024-07-06 22:16:37 +0200 |
| commit | bf3b9c374e1e68b1244da392666b571ab37e51fb (patch) | |
| tree | b76bd387664a2b2fc381a2e907795d21016c150d /res | |
| parent | 6021a0b83c33a495fedde7bbb751ad3e3754bd98 (diff) | |
| download | unexpected-keyboard-bf3b9c374e1e68b1244da392666b571ab37e51fb.tar.gz unexpected-keyboard-bf3b9c374e1e68b1244da392666b571ab37e51fb.zip | |
Clipboard pane (#681)
This adds the clipboard pane, which allows to save an arbitrary number of
clipboards and to paste them later. The key can be disabled in settings.
Checking the "Recently copied text" checkbox will cause the keyboard to keep a
temporary history of copied text. This history can only contain 3 elements
which expire after 5 minutes.
If this is unchecked, no history is collected.
History entries can be pinned into the persisted list of pins.
Diffstat (limited to 'res')
28 files changed, 171 insertions, 2 deletions
diff --git a/res/drawable/ic_clipboard_paste.xml b/res/drawable/ic_clipboard_paste.xml new file mode 100644 index 0000000..1507f27 --- /dev/null +++ b/res/drawable/ic_clipboard_paste.xml @@ -0,0 +1 @@ +<!-- drawable/file_send.xml --><vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#000000" android:pathData="M14,2H6C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M12.54,19.37V17.37H8.54V15.38H12.54V13.38L15.54,16.38L12.54,19.37M13,9V3.5L18.5,9H13Z" /></vector>
\ No newline at end of file diff --git a/res/drawable/ic_clipboard_save.xml b/res/drawable/ic_clipboard_save.xml new file mode 100644 index 0000000..53abcf2 --- /dev/null +++ b/res/drawable/ic_clipboard_save.xml @@ -0,0 +1 @@ +<!-- drawable/bookmark_plus.xml --><vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#000000" android:pathData="M17,3A2,2 0 0,1 19,5V21L12,18L5,21V5C5,3.89 5.9,3 7,3H17M11,7V9H9V11H11V13H13V11H15V9H13V7H11Z" /></vector>
\ No newline at end of file diff --git a/res/drawable/ic_delete.xml b/res/drawable/ic_delete.xml new file mode 100644 index 0000000..5b69d0b --- /dev/null +++ b/res/drawable/ic_delete.xml @@ -0,0 +1 @@ +<!-- drawable/delete.xml --><vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:width="24dp" android:viewportWidth="24" android:viewportHeight="24"><path android:fillColor="#000000" android:pathData="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" /></vector>
\ No newline at end of file diff --git a/res/layout/clipboard_history_entry.xml b/res/layout/clipboard_history_entry.xml new file mode 100644 index 0000000..9d34a9e --- /dev/null +++ b/res/layout/clipboard_history_entry.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> + <TextView android:id="@+id/clipboard_entry_text" style="@style/clipboardEntry"/> + <LinearLayout style="@style/clipboardEntryButtons"> + <View android:id="@+id/clipboard_entry_paste" style="@style/clipboardEntryButton" android:background="@drawable/ic_clipboard_paste"/> + <View android:id="@+id/clipboard_entry_addpin" style="@style/clipboardEntryButton" android:background="@drawable/ic_clipboard_save"/> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/clipboard_pane.xml b/res/layout/clipboard_pane.xml new file mode 100644 index 0000000..84dc6c9 --- /dev/null +++ b/res/layout/clipboard_pane.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="?attr/colorKeyboard" android:hardwareAccelerated="false"> + <ScrollView android:layout_width="fill_parent" android:layout_height="@dimen/clipboard_view_height"> + <LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content"> + <juloo.keyboard2.ClipboardHistoryCheckBox android:text="@string/clipboard_history_heading" style="@style/clipboardHeading" android:layout_width="fill_parent" android:layout_height="wrap_content"/> + <juloo.keyboard2.ClipboardHistoryView android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:divider="?attr/clipboard_divider_color" android:dividerHeight="?attr/clipboard_divider_height"/> + <TextView android:text="@string/clipboard_pin_heading" style="@style/clipboardHeading" android:layout_width="fill_parent" android:layout_height="wrap_content"/> + <juloo.keyboard2.ClipboardPinView android:id="@+id/clipboard_pin_view" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content" android:divider="?attr/clipboard_divider_color" android:dividerHeight="?attr/clipboard_divider_height"/> + </LinearLayout> + </ScrollView> + <juloo.keyboard2.Keyboard2View layout="@xml/clipboard_bottom_row" android:layout_width="fill_parent" android:layout_height="wrap_content" android:background="?attr/colorKeyboard"/> +</LinearLayout> diff --git a/res/layout/clipboard_pin_entry.xml b/res/layout/clipboard_pin_entry.xml new file mode 100644 index 0000000..9cd8b2d --- /dev/null +++ b/res/layout/clipboard_pin_entry.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> + <TextView android:id="@+id/clipboard_pin_text" style="@style/clipboardEntry" android:maxLines="3"/> + <LinearLayout style="@style/clipboardEntryButtons"> + <View android:id="@+id/clipboard_pin_paste" style="@style/clipboardEntryButton" android:background="@drawable/ic_clipboard_paste"/> + <View android:id="@+id/clipboard_pin_remove" style="@style/clipboardEntryButton" android:background="@drawable/ic_delete"/> + </LinearLayout> +</LinearLayout> diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index 0e645a7..4e7c785 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -116,4 +116,9 @@ Tato aplikace neobsahuje žádné reklamy, nevyužívá připojení k síti a je <string name="key_descr_page_down">Page Down</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 8a63e4c..890d8af 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -116,4 +116,9 @@ Diese App enthält keine Werbung, benötigt keinen Netzwerkzugriff und ist quell <string name="key_descr_page_down">Bild ab</string> <string name="key_descr_home">Pos1</string> <string name="key_descr_end">Ende</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index 9f3322d..dc8578f 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -116,4 +116,9 @@ La misma no contiene ningún anuncio/publicidad, no realiza peticiones de red y <string name="key_descr_page_down">Re Pág</string> <string name="key_descr_home">Inicio</string> <string name="key_descr_end">Fin</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-fa/strings.xml b/res/values-fa/strings.xml index f76e689..46e9310 100644 --- a/res/values-fa/strings.xml +++ b/res/values-fa/strings.xml @@ -116,4 +116,9 @@ This application contains no ads, doesn't make any network requests and is Open <!-- <string name="key_descr_page_down">Page Down</string> --> <!-- <string name="key_descr_home">Home</string> --> <!-- <string name="key_descr_end">End</string> --> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index ba7d21a..93d7ff0 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -116,4 +116,9 @@ Cette application ne contient pas de publicité, n'accède pas au réseau et est <string name="key_descr_page_down">Page suivante</string> <string name="key_descr_home">Début</string> <string name="key_descr_end">Fin</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index f4da65d..0d58124 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -116,4 +116,9 @@ This application contains no ads, doesn't make any network requests and is Open <!-- <string name="key_descr_page_down">Page Down</string> --> <!-- <string name="key_descr_home">Home</string> --> <!-- <string name="key_descr_end">End</string> --> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 20844c2..c2036f2 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -116,4 +116,9 @@ This application contains no ads, doesn't make any network requests and is Open <!-- <string name="key_descr_page_down">Page Down</string> --> <!-- <string name="key_descr_home">Home</string> --> <!-- <string name="key_descr_end">End</string> --> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-lv/strings.xml b/res/values-lv/strings.xml index 7ae25b3..db6eded 100644 --- a/res/values-lv/strings.xml +++ b/res/values-lv/strings.xml @@ -118,4 +118,9 @@ Tagad lieliski piemērota izmantošanai ikdienā. <string name="key_descr_page_down">Lejupšķirt</string> <string name="key_descr_home">Sākums</string> <string name="key_descr_end">Beigas</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index 4531c8f..dff1b05 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -116,4 +116,9 @@ Aplikacja nie zawiera reklam, nie żąda dostępu do internetu, a jej kod źród <string name="key_descr_page_down">Page Down</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index 1d98260..651eb0b 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -116,4 +116,9 @@ Este aplicativo não contém anúncios, não faz nenhuma solicitação de rede e <string name="key_descr_page_down">Page Down</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-ro/strings.xml b/res/values-ro/strings.xml index b68f15e..13086c5 100644 --- a/res/values-ro/strings.xml +++ b/res/values-ro/strings.xml @@ -116,4 +116,9 @@ Această aplicație nu conține publicitate, nu folosește rețeaua deloc și e <!-- <string name="key_descr_page_down">Page Down</string> --> <!-- <string name="key_descr_home">Home</string> --> <!-- <string name="key_descr_end">End</string> --> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 47e925c..982dcb3 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -116,4 +116,9 @@ <string name="key_descr_page_down">Страница вниз</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 4a77bbc..ce8c205 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -116,4 +116,9 @@ Bu uygulama açık kaynaklıdır. Reklam içermez ve internete bağlanmaz."</str <string name="key_descr_page_down">Aşağı</string> <string name="key_descr_home">BAŞ(Sol yön tuşu)</string> <string name="key_descr_end">SON(Sağ yön tuşu)</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-uk/strings.xml b/res/values-uk/strings.xml index 268dc8b..0f7e81f 100644 --- a/res/values-uk/strings.xml +++ b/res/values-uk/strings.xml @@ -116,4 +116,9 @@ <string name="key_descr_page_down">Page Down</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index 8ea468d..a97068a 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -116,4 +116,9 @@ Bây giờ đã hoàn hảo cho việc sử dụng hàng ngày. <!-- <string name="key_descr_page_down">Page Down</string> --> <!-- <string name="key_descr_home">Home</string> --> <!-- <string name="key_descr_end">End</string> --> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 89b6c28..8809ff2 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -116,4 +116,9 @@ <string name="key_descr_page_down">下一页</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <!-- <string name="key_descr_clipboard">Clipboard manager</string> --> + <!-- <string name="clipboard_history_heading">Recently copied text</string> --> + <!-- <string name="clipboard_pin_heading">Pinned</string> --> + <!-- <string name="clipboard_remove_confirm">Remove this clipboard?</string> --> + <!-- <string name="clipboard_remove_confirmed">Yes</string> --> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 224aca5..75df689 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -116,4 +116,9 @@ This application contains no ads, doesn't make any network requests and is Open <string name="key_descr_page_down">Page Down</string> <string name="key_descr_home">Home</string> <string name="key_descr_end">End</string> + <string name="key_descr_clipboard">Clipboard manager</string> + <string name="clipboard_history_heading">Recently copied text</string> + <string name="clipboard_pin_heading">Pinned</string> + <string name="clipboard_remove_confirm">Remove this clipboard?</string> + <string name="clipboard_remove_confirmed">Yes</string> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 07ed490..8705d98 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <resources> + <!-- Emoji pane --> <style name="emojiTypeButton"> <item name="android:padding">1px</item> <item name="android:gravity">center</item> @@ -15,6 +16,39 @@ <item name="android:textSize">@dimen/emoji_text_size</item> <item name="android:textColor">?attr/emoji_color</item> </style> + <!-- Clipboard pane --> + <style name="clipboardEntry"> + <item name="android:layout_weight">1</item> + <item name="android:layout_width">fill_parent</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_marginHorizontal">14dp</item> + <item name="android:layout_marginVertical">14dp</item> + <item name="android:textSize">16dp</item> + <item name="android:textColor">?attr/colorLabel</item> + </style> + <style name="clipboardHeading"> + <item name="android:layout_marginHorizontal">6dp</item> + <item name="android:layout_marginTop">14dp</item> + <item name="android:layout_marginBottom">0dp</item> + <item name="android:textSize">14dp</item> + <item name="android:fontWeight">700</item> + <item name="android:textColor">?attr/colorSubLabel</item> + </style> + <style name="clipboardEntryButtons"> + <item name="android:orientation">horizontal</item> + <item name="android:layout_width">wrap_content</item> + <item name="android:layout_height">wrap_content</item> + <item name="android:layout_gravity">center_vertical</item> + <item name="android:layout_marginRight">12dp</item> + </style> + <style name="clipboardEntryButton"> + <item name="android:layout_width">24dp</item> + <item name="android:layout_height">24dp</item> + <item name="android:layout_marginHorizontal">2dp</item> + <item name="android:backgroundTint">?attr/colorLabel</item> + <item name="android:backgroundTintMode">src_in</item> + </style> + <!-- Launcher activity --> <style name="paragraph"> <item name="android:layout_width">fill_parent</item> <item name="android:layout_height">wrap_content</item> diff --git a/res/values/themes.xml b/res/values/themes.xml index a1892d3..aa30080 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -23,11 +23,14 @@ <attr name="keyBorderColorTop" format="color"/> <attr name="keyBorderColorRight" format="color"/> <attr name="keyBorderColorBottom" format="color"/> - <!-- Emoji panel --> + <!-- Emoji pane --> <attr name="emoji_button_bg" type="color" format="color"/> <attr name="emoji_color" type="color" format="color"/> <attr name="emoji_key_bg" type="color" format="color"/> <attr name="emoji_key_text" type="color" format="color"/> + <!-- Clipboard pane --> + <attr name="clipboard_divider_color" type="color" format="color"/> + <attr name="clipboard_divider_height" format="dimension"/> <!-- System integration --> <attr name="navigationBarColor" format="color"/> <attr name="windowLightNavigationBar" format="boolean"/> @@ -43,6 +46,8 @@ <item name="greyedDimming">0.5</item> <item name="emoji_key_bg" type="color">?attr/emoji_button_bg</item> <item name="emoji_key_text" type="color">?attr/colorLabel</item> + <item name="clipboard_divider_color" type="color">?attr/colorKey</item> + <item name="clipboard_divider_height">1px</item> </style> <style name="Dark" parent="BaseTheme"> <item name="android:isLightTheme">false</item> @@ -116,6 +121,7 @@ <item name="colorSubLabel">#333333</item> <item name="emoji_button_bg">#ffffff</item> <item name="emoji_color">#000000</item> + <item name="clipboard_divider_color" type="color">#eeeeee</item> </style> <style name="ePaper" parent="BaseTheme"> <item name="android:isLightTheme">true</item> @@ -134,6 +140,8 @@ <item name="colorSubLabel">#333333</item> <item name="emoji_button_bg">#ffffff</item> <item name="emoji_color">#000000</item> + <item name="clipboard_divider_color" type="color">#000000</item> + <item name="clipboard_divider_height">2dp</item> </style> <style name="Desert" parent="@style/BaseTheme"> <item name="android:isLightTheme">true</item> diff --git a/res/values/values.xml b/res/values/values.xml index cc048e9..b13296b 100644 --- a/res/values/values.xml +++ b/res/values/values.xml @@ -4,6 +4,7 @@ <dimen name="key_padding">2dp</dimen> <dimen name="emoji_grid_height">250dp</dimen> <dimen name="emoji_text_size">28dp</dimen> + <dimen name="clipboard_view_height">300dp</dimen> <dimen name="pref_button_size">28dp</dimen> <bool name="debug_logs">false</bool> <!-- Will be overwritten automatically by Gradle for the debug build variant --> </resources> diff --git a/res/xml/bottom_row.xml b/res/xml/bottom_row.xml index 2f4de2b..600795e 100644 --- a/res/xml/bottom_row.xml +++ b/res/xml/bottom_row.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <row height="0.95"> - <key width="1.7" key0="ctrl" key1="loc switch_greekmath" key2="loc meta" key4="switch_numeric"/> + <key width="1.7" key0="ctrl" key1="loc switch_greekmath" key2="loc meta" key3="loc switch_clipboard" key4="switch_numeric"/> <key width="1.1" key0="fn" key1="loc alt" key2="loc change_method" key3="switch_emoji" key4="config"/> <key width="4.4" key0="space" key7="switch_forward" key8="switch_backward" key5="cursor_left" key6="cursor_right" slider="true"/> <key width="1.1" key0="loc compose" key7="up" key6="right" key5="left" key8="down" key1="loc home" key2="loc page_up" key3="loc end" key4="loc page_down"/> diff --git a/res/xml/clipboard_bottom_row.xml b/res/xml/clipboard_bottom_row.xml new file mode 100644 index 0000000..2dfc596 --- /dev/null +++ b/res/xml/clipboard_bottom_row.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- The bottom row used in the clipboard history pane. --> +<keyboard bottom_row="false"> + <row height="0.95"> + <key key0="switch_back_clipboard"/> + <key width="3" key0="space" key5="cursor_left" key6="cursor_right" slider="true"/> + <key key0="backspace" key2="delete"/> + <key key0="enter" key2="action"/> + </row> +</keyboard> |
