Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix string #13

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
449 changes: 172 additions & 277 deletions app/src/main/res/layout/fragment_home.xml

Large diffs are not rendered by default.

624 changes: 406 additions & 218 deletions app/src/main/res/values/strings.xml

Large diffs are not rendered by default.

58 changes: 16 additions & 42 deletions app/src/main/res/xml/fragment_customization.xml
Original file line number Diff line number Diff line change
@@ -1,149 +1,123 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/general">

<rikka.material.preference.MaterialSwitchPreference
app:key="novotema"
app:summary="@string/novotema_sum"
app:title="@string/colors_title" />

<rikka.material.preference.MaterialSwitchPreference
app:key="changecolor"
app:summary="@string/colors_customization_sum"
app:title="@string/colors_customization" />

<com.jaredrummler.android.colorpicker.ColorPreferenceCompat
app:cpv_showAlphaSlider="true"
app:dependency="changecolor"
app:key="primary_color"
app:summary="@string/default_color"
app:title="@string/primary_color" />

<com.jaredrummler.android.colorpicker.ColorPreferenceCompat
app:cpv_showAlphaSlider="true"
app:dependency="changecolor"
app:key="secondary_color"
app:summary="@string/default_color"
app:title="@string/secondary_color" />

<com.jaredrummler.android.colorpicker.ColorPreferenceCompat
app:cpv_showAlphaSlider="true"
app:dependency="changecolor"
app:key="background_color"
app:summary="@string/default_color"
app:title="@string/background_color" />

<MultiSelectListPreference
app:entries="@array/tabshide_contents"
app:entryValues="@array/tabshide_values"
app:key="hidetabs"
app:summary="@string/hide_tabs_on_home_sum"
app:title="@string/hide_tabs_on_home" />

<rikka.material.preference.MaterialSwitchPreference
app:key="igstatus"
app:summary="@string/igstatus_on_home_screen_sum"
app:title="@string/igstatus_on_home_screen" />

<rikka.material.preference.MaterialSwitchPreference
app:key="topnav"
app:summary="@string/enable_top_navigation_sum"
app:title="@string/enable_top_navigation" />

<rikka.material.preference.MaterialSwitchPreference
app:key="wallpaper"
app:summary="@string/wallpaper_in_home_screen_sum"
app:title="@string/wallpaper_in_home_screen" />


<com.wmods.wppenhacer.preference.FileSelectPreference
android:summary="@string/wallpaper_not_selected"
android:entryValues="@array/image_picker"
app:key="wallpaper_file"
app:dependency="wallpaper"
android:summary="@string/wallpaper_not_selected"
app:key="wallpaper_file"
app:title="@string/select_wallpaper" />

<SeekBarPreference
android:max="100"
android:defaultValue="20"
app:dependency="wallpaper"
app:key="wallpaper_alpha"
android:defaultValue="20"
android:max="100"
app:min="0"
app:showSeekBarValue="true"
app:title="@string/wallpaper_transparency" />

<MultiSelectListPreference
app:entries="@array/tabshide_contents"
app:entryValues="@array/tabshide_values"
app:key="hidetabs"
app:summary="@string/hide_tabs_on_home_sum"
app:title="@string/hide_tabs_on_home" />
</PreferenceCategory>

<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/conversation">

<rikka.material.preference.MaterialSwitchPreference
app:key="bubble_color"
app:summary="@string/change_blubble_color_sum"
app:title="@string/change_bubble_colors" />

<com.jaredrummler.android.colorpicker.ColorPreferenceCompat
app:cpv_showAlphaSlider="true"
app:dependency="bubble_color"
app:key="bubble_left"
app:summary="@string/default_color"
app:title="@string/bubble_left" />

<com.jaredrummler.android.colorpicker.ColorPreferenceCompat
app:cpv_showAlphaSlider="true"
app:dependency="bubble_color"
app:key="bubble_right"
app:summary="@string/default_color"
app:title="@string/bubble_right" />
</PreferenceCategory>

<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/home_screen">

<rikka.material.preference.MaterialSwitchPreference
app:key="strokebuttons"
app:summary="@string/strokebuttons_sum"
app:title="@string/strokebuttons" />

<rikka.material.preference.MaterialSwitchPreference
app:key="menuwicon"
app:summary="@string/menuwicon_sum"
app:title="@string/menuwicon" />

<rikka.material.preference.MaterialSwitchPreference
app:key="outlinedicons"
app:summary="@string/outlinedicons_sum"
app:title="@string/outlinedicons" />

<rikka.material.preference.MaterialSwitchPreference
app:key="novaconfig"
app:summary="@string/novaconfig_sum"
app:title="@string/novaconfig" />

</PreferenceCategory>

<PreferenceCategory android:title="@string/status">
<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/status">
<rikka.material.preference.MaterialSwitchPreference
app:key="removechannel_rec"
app:summary="@string/remove_channel_recomendations_sum"
app:title="@string/remove_channel_recomendations" />

<rikka.material.preference.MaterialSwitchPreference
app:key="fbstyle"
app:summary="@string/enable_facebook_style_for_status_sum"
app:title="@string/enable_facebook_style_for_status" />

<rikka.material.preference.MaterialSwitchPreference
app:key="channels"
app:summary="@string/disable_channels_sum"
app:title="@string/disable_channels" />

</PreferenceCategory>

</PreferenceScreen>
</PreferenceScreen>
83 changes: 24 additions & 59 deletions app/src/main/res/xml/fragment_general.xml
Original file line number Diff line number Diff line change
@@ -1,169 +1,134 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceScreen
xmlns:app="http://schemas.android.com/apk/res-auto">
<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/general">

<rikka.material.preference.MaterialSwitchPreference
app:key="enablelogs"
app:defaultValue="true"
app:key="enablelogs"
app:title="@string/verbose_logs" />

<rikka.material.preference.MaterialSwitchPreference
app:key="ampm"
app:title="@string/ampm" />

<rikka.material.preference.MaterialSwitchPreference
app:key="segundos"
app:summary="@string/segundosnahora_sum"
app:title="@string/segundosnahora" />

<EditTextPreference
app:iconSpaceReserved="false"
app:key="secondstotime"
app:title="@string/textonahora" />
</PreferenceCategory>

<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/home_screen">

<rikka.material.preference.MaterialSwitchPreference
app:key="shownamehome"
app:summary="@string/showname_sum"
app:title="@string/showname" />

<rikka.material.preference.MaterialSwitchPreference
app:key="showbiohome"
app:summary="@string/showbio_sum"
app:title="@string/showbio" />

<rikka.material.preference.MaterialSwitchPreference
app:key="show_dndmode"
app:summary="@string/show_dnd_button_sum"
app:title="@string/show_dnd_button" />

<rikka.material.preference.MaterialSwitchPreference
app:key="newchat"
app:defaultValue="true"
app:key="newchat"
app:summary="@string/enable_new_chat_button_sum"
app:title="@string/enable_new_chat_button" />

<rikka.material.preference.MaterialSwitchPreference
app:key="restartbutton"
app:defaultValue="true"
app:key="restartbutton"
app:summary="@string/enable_restart_button_sum"
app:title="@string/enable_restart_button" />

<rikka.material.preference.MaterialSwitchPreference
app:key="show_freezeLastSeen"
app:defaultValue="true"
app:key="show_freezeLastSeen"
app:summary="@string/show_freezeLastSeen_sum"
app:title="@string/show_freezeLastSeen_button" />


<rikka.material.preference.MaterialSwitchPreference
app:key="separategroups"
app:summary="@string/separate_groups_sum"
app:title="@string/separate_groups" />

<rikka.material.preference.MaterialSwitchPreference
app:key="hidearchive"
app:summary="@string/hide_archived_chat_sum"
app:title="@string/hide_archived_chat" />

<rikka.material.preference.MaterialSwitchPreference
app:key="dotonline"
app:summary="@string/show_online_dot_in_conversation_list_sum"
app:title="@string/show_online_dot_in_conversation_list" />

<rikka.material.preference.MaterialSwitchPreference
app:key="pinnedlimit"
app:summary="@string/disable_pinned_limit_sum"
app:title="@string/disable_pinned_limit" />

app:key="filterseen"
app:summary="@string/enable_filter_chats_sum"
app:title="@string/enable_filter_chats" />
<rikka.material.preference.MaterialSwitchPreference
app:key="metaai"
app:summary="@string/disable_metaai_sum"
app:title="@string/disable_metaai" />
<ListPreference
app:entries="@array/chatfilter_buttons"
app:entryValues="@array/chatfilter_values"
app:key="chatfilter"
app:summary="@string/novofiltro_sum"
app:title="@string/novofiltro" />

<rikka.material.preference.MaterialSwitchPreference
app:key="metaai"
app:summary="@string/disable_metaai_sum"
app:title="@string/disable_metaai" />



</PreferenceCategory>

<PreferenceCategory
app:iconSpaceReserved="false"
app:title="@string/conversation">

<rikka.material.preference.MaterialSwitchPreference
app:key="toastdeleted"
app:summary="@string/toast_on_delete_sum"
app:title="@string/toast_on_delete" />
<ListPreference
app:entries="@array/antirevoke_entries"
app:entryValues="@array/antirevoke_values"
app:iconSpaceReserved="false"
app:key="antirevoke"
app:summary="@string/antirevoke_sum"
app:title="@string/antirevoke" />

<rikka.material.preference.MaterialSwitchPreference
app:key="toastdeleted"
app:title="@string/toast_on_delete_sum"
app:summary="@string/toast_on_delete" />

<ListPreference
app:entries="@array/antirevoke_entries"
app:entryValues="@array/antirevoke_values"
app:iconSpaceReserved="false"
app:key="antirevokestatus"
app:summary="@string/antirevokestatus_sum"
app:title="@string/antirevokestatus" />

<rikka.material.preference.MaterialSwitchPreference
app:summary="@string/removeforwardlimit_sum"
app:key="pinnedlimit"
app:summary="@string/disable_pinned_limit_sum"
app:title="@string/disable_pinned_limit" />
<rikka.material.preference.MaterialSwitchPreference
app:key="removeforwardlimit"
app:summary="@string/removeforwardlimit_sum"
app:title="@string/removeforwardlimit" />


<rikka.material.preference.MaterialSwitchPreference
app:key="hidetag"
app:summary="@string/hidetag_sum"
app:title="@string/hidetag" />

<rikka.material.preference.MaterialSwitchPreference
app:key="revokeallmessages"
app:summary="@string/delete_for_everyone_all_messages_sum"
app:title="@string/delete_for_everyone_all_messages" />

<rikka.material.preference.MaterialSwitchPreference
app:key="removeseemore"
app:summary="@string/remove_see_more_button_"
app:title="@string/remove_see_more_button" />

<rikka.material.preference.MaterialSwitchPreference
app:key="antieditmessages"
app:summary="@string/show_edited_message_history_sum"
app:title="@string/show_edited_message_history" />

<rikka.material.preference.MaterialSwitchPreference
app:key="filterseen"
app:summary="@string/enable_filter_chats_sum"
app:title="@string/enable_filter_chats" />

<rikka.material.preference.MaterialSwitchPreference
app:key="alertsticker"
app:summary="@string/enable_confirmation_to_send_sticker_sum"
app:title="@string/enable_confirmation_to_send_sticker" />

<rikka.material.preference.MaterialSwitchPreference
app:key="calltype"
app:summary="@string/selection_of_call_type_sum"
app:title="@string/selection_of_call_type" />

</PreferenceCategory>


</PreferenceScreen>
</PreferenceScreen>
Loading
Loading