mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
7a773016da
* feat: start new app theming feature * feat: add some theming colours * refactor: start refactoring themes and colours to use dynamic attributes * feat: adding more colours and switching over default colours to be theme based instead of hard-coded or day/night specific * refactor: take a look at ocean light and logo colour * feat: global search colours for light and dark ocean * feat: more styling * feat: adding themes to conversation activity and refactoring the base theme to apply over the top of the activity's theme so it retains noActionBar etc * feat: add dynamic accent color * docs: add todo for changing how accent colour is applied * feat: update new theming to use override primary style so that the regular colorAccent attribute can be used in existing layouts * feat: coordinating styles across layouts, fixing up pinned icons and naming for conversation list items * refactor: re-styling layouts to match new themes and attributes. Need to figure out action mode close button * refactor: remove @color/text and replace with ?android:textColorPrimary to override in themes * refactor: add context theme wrapper to bottom sheet dialog that references accent color * fix: input bar bug fix and preference activity themes * refactor: new settings menu options * fix: crash for PNModeActivity.kt refactor: move ordering in seed dialog to match designs, copy changes to match new settings menu * feat: add new appearance settings activity * refactor: title and VM changes * fix: correct override * feat: add theme appearance screen UI features and start VM implementation. re-add legacy theme utils to get default for migration * fix: compile errors and missing themes from emoji features * refactor: remove background shape alteration and old bottom sheet styles, re-add the theme mode attr * feat: appearance screen wired up, just need to refresh theme * feat: add theme state recreation and fix match system settings option * refactor: add bottom margin * feat: explore custom preference category * feat: add the customized session theme for CorrectedPreferenceFragment * feat: replace AppProtectionPreferenceFragment to extend ListSummaryPreferenceFragment * refactor: change drawable style and remove explicit dividers * refactor: remove divider in CorrectedPreferenceFragment * feat: add theme state check on resume, might be jarring currently * feat: add preference divider elements for settings menu * refactor: settings menu redesigns * refactor: change led preference to integer and refactor TextSecurePreferences.kt * feat: add scroll parcel to save/restore hierarchy on restart with appearance changes * feat: add the conversations blocked contacts and refactor preference order and copy * feat: add blocked contacts activity, basic layout and vm * feat: add unblock DB functions and storage protocol, start working on the DB query state flow, might have to just implement recipient on modified listener * feat: add blocked contacts and notif recipient listeners * feat: add recipient db reader * feat: add blocked contact interactions and fix a theming crash for notifications * feat: introduce better equals and hashcode implementations to recipient, replace home diff util content check with hashcode-based comparison * feat: add settings menu vectors * fix: preview compile error * refactor: migrating settings menu to new designs * feat: help menu * refactor: simplify link opening * refactor: remove space * feat: refactor preferences and start theming for light mode options * refactor: fixing dark and light modes with dialogs * refactor: popup dialogs use proper themes now * refactor: alert dialogs and media edit fragments use attribute references * refactor: use input bar button attribute instead color control normal in vector tint * refactor: transparency, dialog fixes, notification fix * refactor: attrs and styles for buttons * fix: use prominent button color on the outline button's border * fix: fix the trash * refactor: remove the appearance * refactor: avatar placeholder generation, chips and element border styles * refactor: use colors instead of style references * refactor: theming changes to match designs and feedback * refactor: the titles are bold and the categories are tertiary coloured now * fix: appearance settings match preferences, search bottom bar uses themed attributes * refactor: increase setting button height * Update clear all data dialog * Update seed dialog * refactor: more qa feedback changes * feat: add new TLs and fa-rIR TLs * Update notification content dialog * Fix message requests clear all button text color * feat: re-add screenshot observer * refactor: make send tint accent color * feat: add unread background differences * fix: change unread count indicator * build: upgrade build numbers * Fix message requests popupmenu background color * fix: crash from attr reference in color attribute * build: upgrade build number * fix: message bubbles, thumbnail backgrounds, search bar visibility with input bar, attachment buttons * fix: tertiary text for keyboard page search view * fix: emoji overflow colour differences * fix: reaction pill dialog background is now correct colour * Add style to reactions tab layout * fix: appearance activity reverting primary color at correct time * fix: show call privacy warning every time instead of just once * fix: gradient background(?) and audio autoplay disable * fix: crash in all media containing documents * fix: reaction dialog heading fixes * Add style to reactions tab layout * fix: remove gradient backgrounds * fix: adding new reaction normal text attribute to try correct the tab layout * fix: ocean dark unread/read colours * build; update build number * build: update build number Co-authored-by: charles <charles@oxen.io>
379 lines
19 KiB
XML
379 lines
19 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<attr name="theme_type" format="string"/>
|
|
|
|
<attr name="attachment_type_selector_background" format="color"/>
|
|
<attr name="attachment_type_selector_hide_button_background" format="color"/>
|
|
<attr name="attachment_document_icon_small" format="reference" />
|
|
<attr name="attachment_document_icon_large" format="reference" />
|
|
<attr name="attachment_document_extension_text_color" format="color" />
|
|
|
|
<attr name="conversation_list_item_background" format="reference"/>
|
|
<attr name="conversation_list_item_contact_color" format="reference|color"/>
|
|
<attr name="conversation_list_item_subject_color" format="reference|color"/>
|
|
<attr name="conversation_list_item_delivery_icon_color" format="reference|color"/>
|
|
<attr name="conversation_list_item_date_color" format="reference|color"/>
|
|
<attr name="conversation_list_item_unread_color" format="reference|color"/>
|
|
<attr name="conversation_list_item_unread_background" format="reference"/>
|
|
<attr name="conversation_list_item_divider" format="reference"/>
|
|
<attr name="conversation_list_toolbar_background" format="reference"/>
|
|
<attr name="conversation_list_typing_tint" format="color"/>
|
|
|
|
<attr name="conversation_group_member_name" format="reference|color"/>
|
|
|
|
<attr name="fab_color" format="reference|color" />
|
|
<attr name="lower_right_divet" format="reference" />
|
|
|
|
<attr name="ic_arrow_forward" format="reference" />
|
|
<attr name="ic_visibility_on" format="reference" />
|
|
<attr name="ic_visibility_off" format="reference" />
|
|
|
|
<attr name="prominentButtonColor" format="reference|color"/>
|
|
<attr name="elementBorderColor" format="reference|color"/>
|
|
<attr name="conversation_background" format="reference|color"/>
|
|
<attr name="conversation_editor_background" format="reference|color"/>
|
|
<attr name="conversation_editor_text_color" format="reference|color"/>
|
|
<attr name="conversation_input_background" format="reference"/>
|
|
<attr name="conversation_input_inline_attach_icon_tint" format="reference"/>
|
|
<attr name="conversation_transport_sms_indicator" format="reference"/>
|
|
<attr name="conversation_transport_push_indicator" format="reference"/>
|
|
<attr name="conversation_transport_popup_background" format="reference"/>
|
|
<attr name="conversation_emoji_toggle" format="reference"/>
|
|
<attr name="conversation_sticker_toggle" format="reference"/>
|
|
<attr name="conversation_keyboard_toggle" format="reference"/>
|
|
<attr name="conversation_attach_camera" format="reference"/>
|
|
<attr name="conversation_attach_image" format="reference"/>
|
|
<attr name="conversation_attach_video" format="reference"/>
|
|
<attr name="conversation_attach_sound" format="reference"/>
|
|
<attr name="conversation_attach_contact_info" format="reference"/>
|
|
<attr name="conversation_attach" format="reference"/>
|
|
<attr name="conversation_number_picker_text_color_normal" format="reference|color"/>
|
|
<attr name="conversation_number_picker_text_color_selected" format="reference|color"/>
|
|
<attr name="conversation_sticker_footer_text_color" format="reference|color"/>
|
|
<attr name="conversation_sticker_footer_icon_color" format="reference|color"/>
|
|
<attr name="conversation_sticker_author_color" format="reference|color"/>
|
|
|
|
<attr name="emoji_tab_strip_background" format="color" />
|
|
<attr name="emoji_tab_indicator" format="color" />
|
|
<attr name="emoji_tab_underline" format="color" />
|
|
<attr name="emoji_tab_seperator" format="color" />
|
|
<attr name="emoji_drawer_background" format="color" />
|
|
<attr name="emoji_text_color" format="color" />
|
|
|
|
<attr name="emoji_category_recent" format="reference"/>
|
|
<attr name="emoji_category_people" format="reference"/>
|
|
<attr name="emoji_category_nature" format="reference"/>
|
|
<attr name="emoji_category_foods" format="reference"/>
|
|
<attr name="emoji_category_activity" format="reference"/>
|
|
<attr name="emoji_category_places" format="reference"/>
|
|
<attr name="emoji_category_objects" format="reference"/>
|
|
<attr name="emoji_category_symbol" format="reference"/>
|
|
<attr name="emoji_category_flags" format="reference"/>
|
|
<attr name="emoji_category_emoticons" format="reference"/>
|
|
<attr name="emoji_variation_selector_background" format="reference|color" />
|
|
<attr name="emoji_show_less_icon" format="reference|color" />
|
|
|
|
<attr name="quick_camera_icon" format="reference"/>
|
|
<attr name="quick_mic_icon" format="reference"/>
|
|
|
|
<attr name="conversation_item_bubble_background" format="reference|color"/>
|
|
<attr name="conversation_item_sent_text_primary_color" format="reference|color"/>
|
|
<attr name="conversation_item_sent_text_secondary_color" format="reference|color"/>
|
|
<attr name="conversation_item_received_text_primary_color" format="reference|color"/>
|
|
<attr name="conversation_item_received_text_secondary_color" format="reference|color"/>
|
|
<attr name="conversation_item_sent_text_indicator_tab_color" format="reference|color"/>
|
|
<attr name="conversation_item_sent_indicator_text_background" format="reference" />
|
|
<attr name="conversation_item_sent_icon_color" format="color" />
|
|
<attr name="conversation_item_sticky_date_background" format="reference" />
|
|
<attr name="conversation_item_sticky_date_text_color" format="color" />
|
|
<attr name="conversation_item_image_outline_color" format="color" />
|
|
<attr name="conversation_item_audio_seek_bar_color_incoming" format="reference|color" />
|
|
<attr name="conversation_item_audio_seek_bar_color_outgoing" format="reference|color" />
|
|
<attr name="conversation_item_audio_seek_bar_background_color" format="reference|color" />
|
|
<attr name="conversation_pinned_background_color" format="reference|color" />
|
|
<attr name="conversation_unread_background_color" format="reference|color" />
|
|
<attr name="conversation_pinned_icon_color" format="reference|color" />
|
|
|
|
<attr name="dialog_info_icon" format="reference" />
|
|
<attr name="dialog_alert_icon" format="reference" />
|
|
<attr name="dialog_background_color" format="reference|color" />
|
|
<attr name="conversation_menu_background_color" format="reference|color" />
|
|
<attr name="conversation_menu_cell_color" format="reference|color"/>
|
|
<attr name="conversation_menu_border_color" format="reference|color"/>
|
|
<attr name="conversationMenuSearchBackgroundColor" format="reference|color"/>
|
|
<attr name="conversationMenuSearchTintColor" format="reference|color"/>
|
|
<attr name="dialog_border" format="reference|color" />
|
|
<attr name="sessionLogoTint" format="reference|color" />
|
|
|
|
<attr name="theme_preview_incoming" format="reference|color"/>
|
|
<attr name="theme_preview_outgoing" format="reference|color"/>
|
|
<attr name="theme_preview_background" format="reference|color"/>
|
|
<attr name="theme_preview_border" format="reference|color"/>
|
|
|
|
<attr name="conversation_icon_attach_audio" format="reference"/>
|
|
<attr name="conversation_icon_attach_video" format="reference" />
|
|
|
|
<attr name="device_link_item_card_background" format="reference|color" />
|
|
|
|
<attr name="linkpreview_background_color" format="color" />
|
|
<attr name="linkpreview_primary_text_color" format="color" />
|
|
<attr name="linkpreview_secondary_text_color" format="color" />
|
|
<attr name="linkpreview_divider_color" format="color" />
|
|
|
|
<attr name="media_keyboard_button_color" format="color" />
|
|
|
|
<attr name="menu_popup_expand" format="reference"/>
|
|
<attr name="menu_trash_icon" format="reference" />
|
|
<attr name="menu_select_icon" format="reference" />
|
|
<attr name="menu_selectall_icon" format="reference" />
|
|
<attr name="menu_split_icon" format="reference" />
|
|
<attr name="menu_accept_icon" format="reference" />
|
|
<attr name="menu_copy_icon" format="reference" />
|
|
<attr name="menu_forward_icon" format="reference" />
|
|
<attr name="menu_save_icon" format="reference" />
|
|
<attr name="menu_reply_icon" format="reference" />
|
|
<attr name="menu_block_icon" format="reference" />
|
|
<attr name="menu_photo_library_icon" format="reference" />
|
|
<attr name="menu_delete_icon" format="reference" />
|
|
<attr name="menu_info_icon" format="reference" />
|
|
<attr name="menu_pin_icon" format="reference" />
|
|
<attr name="menu_unpin_icon" format="reference" />
|
|
<attr name="menu_mark_all_as_read" format="reference" />
|
|
|
|
<attr name="pref_icon_tint" format="color"/>
|
|
|
|
<attr name="home_gradient_start" format="color|reference" />
|
|
<attr name="home_gradient_end" format="color|reference" />
|
|
<attr name="conversation_color_non_main" format="color|reference"/>
|
|
<attr name="conversation_tint_non_main" format="color|reference"/>
|
|
<attr name="conversation_shadow_non_main" format="color|reference"/>
|
|
<attr name="conversation_shadow_main" format="color|reference"/>
|
|
<attr name="default_background_start" format="color|reference"/>
|
|
<attr name="default_background_end" format="color|reference"/>
|
|
<attr name="colorCellRipple" format="color|reference"/>
|
|
<attr name="colorCellBackground" format="color|reference" />
|
|
<attr name="colorSettingsBackground" format="color|reference" />
|
|
<attr name="colorDividerBackground" format="color|reference" />
|
|
<attr name="outlineButtonBorder" format="color|reference" />
|
|
<attr name="outlineButtonText" format="color|reference" />
|
|
<attr name="unreadIndicatorBackgroundColor" format="color|reference"/>
|
|
<attr name="unreadIndicatorTextColor" format="color|reference"/>
|
|
|
|
<attr name="message_selected" format="color|reference" />
|
|
<attr name="message_received_background_color" format="color|reference" />
|
|
<attr name="message_received_text_color" format="color|reference" />
|
|
<attr name="message_sent_background_color" format="color|reference" />
|
|
<attr name="message_sent_text_color" format="color|reference" />
|
|
<attr name="input_bar_background" format="color|reference"/>
|
|
<attr name="input_bar_text_hint" format="color|reference"/>
|
|
<attr name="input_bar_text_user" format="color|reference"/>
|
|
<attr name="input_bar_border" format="color|reference"/>
|
|
<attr name="input_bar_button_background" format="color|reference"/>
|
|
<attr name="input_bar_button_background_opaque" format="color|reference"/>
|
|
<attr name="input_bar_button_background_opaque_border" format="color|reference"/>
|
|
<attr name="input_bar_button_text_color" format="color|reference"/>
|
|
<attr name="input_bar_lock_view_background" format="color|reference"/>
|
|
<attr name="input_bar_lock_view_border" format="color|reference"/>
|
|
<attr name="mention_candidates_view_background" format="color|reference"/>
|
|
<attr name="mention_candidates_view_background_ripple" format="color|reference"/>
|
|
<attr name="scroll_to_bottom_button_background" format="color|reference"/>
|
|
<attr name="scroll_to_bottom_button_border" format="color|reference"/>
|
|
<attr name="conversation_unread_count_indicator_background" format="color|reference"/>
|
|
|
|
<attr name="verification_background" format="color"/>
|
|
|
|
<attr name="media_overview_toolbar_background" format="color"/>
|
|
|
|
<attr name="shared_contact_details_header_background" format="color"/>
|
|
<attr name="shared_contact_details_titlebar" format="color"/>
|
|
<attr name="shared_contact_item_button_color" format="color"/>
|
|
|
|
<attr name="sticker_management_icon" format="reference" />
|
|
<attr name="sticker_management_divider_color" format="color" />
|
|
<attr name="sticker_management_empty_background_color" format="color" />
|
|
<attr name="sticker_management_action_button_color" format="color" />
|
|
<attr name="sticker_popup_background" format="color" />
|
|
<attr name="sticker_preview_toolbar_background" format="color" />
|
|
<attr name="sticker_preview_status_bar_color" format="color" />
|
|
<attr name="sticker_view_missing_background" format="reference|color" />
|
|
|
|
<attr name="tooltip_default_color" format="reference|color" />
|
|
|
|
<declare-styleable name="CustomDefaultPreference">
|
|
<attr name="custom_pref_toggle" format="string"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="AvatarImageView">
|
|
<attr name="inverted" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="ThumbnailView">
|
|
<attr name="minWidth" format="dimension" />
|
|
<attr name="maxWidth" format="dimension" />
|
|
<attr name="minHeight" format="dimension" />
|
|
<attr name="maxHeight" format="dimension" />
|
|
<attr name="thumbnail_radius" format="dimension" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="DeliveryStatusView">
|
|
<attr name="iconColor" format="color" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="AlertView">
|
|
<attr name="useSmallIcon" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="MessageAudioView">
|
|
<attr name="widgetBackground" format="color"/>
|
|
<attr name="foregroundTintColor" format="color" />
|
|
<attr name="waveformFillColor" format="reference|color" />
|
|
<attr name="waveformBackgroundColor" format="reference|color" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="CircleColorImageView">
|
|
<attr name="circleColor" format="color"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="ShapeScrim">
|
|
<attr name="shape" format="string"/>
|
|
<attr name="radius" format="float"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="CameraView">
|
|
<attr name="camera" format="integer"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="HourglassView">
|
|
<attr name="full" format="reference"/>
|
|
<attr name="empty" format="reference"/>
|
|
<attr name="tint" format="color"/>
|
|
<attr name="percentage" format="integer"/>
|
|
<attr name="offset" format="integer"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="SquareFrameLayout">
|
|
<attr name="square_height" format="boolean"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="VerticalSlideColorPicker">
|
|
<attr name="pickerBorderColor" format="color" />
|
|
<attr name="pickerBorderWidth" format="dimension" />
|
|
<attr name="pickerColors" format="reference" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="EmojiTextView">
|
|
<attr name="measureLastLine" format="boolean" />
|
|
<attr name="scaleEmojis" format="boolean" />
|
|
<attr name="emoji_maxLength" format="integer" />
|
|
<attr name="emoji_forceCustom" format="boolean" />
|
|
<attr name="emoji_renderMentions" format="boolean" />
|
|
<attr name="emoji_forceJumbo" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="EmojiImageView">
|
|
<attr name="forceJumbo" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="EmojiReactionsView">
|
|
<attr name="erv_outgoing" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="ColorPickerPreference">
|
|
<attr name="currentColor" format="reference" />
|
|
<attr name="colors" format="reference" />
|
|
<attr name="sortColors" format="boolean|reference" />
|
|
<attr name="colorDescriptions" format="reference" />
|
|
<attr name="columns" format="integer|reference" />
|
|
<attr name="colorSize" format="enum|reference">
|
|
<enum name="large" value="1" />
|
|
<enum name="small" value="2" />
|
|
</attr>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="VerificationCodeView">
|
|
<attr name="vcv_spacing" format="dimension"/>
|
|
<attr name="vcv_inputWidth" format="dimension"/>
|
|
<attr name="vcv_inputHeight" format="dimension"/>
|
|
<attr name="vcv_inputColor" format="color"/>
|
|
<attr name="vcv_textSize" format="dimension"/>
|
|
<attr name="vcv_textColor" format="color"/>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="QuoteView">
|
|
<attr name="quote_mode" format="enum">
|
|
<enum name="regular" value="0"/>
|
|
<enum name="draft" value="1"/>
|
|
</attr>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="LinkPreviewView">
|
|
<attr name="linkpreview_type" format="enum">
|
|
<enum name="conversation" value="0" />
|
|
<enum name="compose" value="1" />
|
|
</attr>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="DocumentView">
|
|
<attr name="doc_titleColor" format="color" />
|
|
<attr name="doc_captionColor" format="color" />
|
|
<attr name="doc_downloadButtonTint" format="color" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="ConversationItemFooter">
|
|
<attr name="footer_text_color" format="color" />
|
|
<attr name="footer_icon_color" format="color" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="ConversationItemThumbnail">
|
|
<attr name="conversationThumbnail_minWidth" format="dimension" />
|
|
<attr name="conversationThumbnail_maxWidth" format="dimension" />
|
|
<attr name="conversationThumbnail_minHeight" format="dimension" />
|
|
<attr name="conversationThumbnail_maxHeight" format="dimension" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="TypingIndicatorView">
|
|
<attr name="typingIndicator_tint" format="color" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="MaxHeightScrollView">
|
|
<attr name="scrollView_maxHeight" format="dimension" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="LabeledEditText">
|
|
<attr name="labeledEditText_label" format="string" />
|
|
<attr name="labeledEditText_background" format="color" />
|
|
<attr name="labeledEditText_textLayout" format="reference" />
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="WaveformSeekBar">
|
|
<attr name="progress" format="float"/>
|
|
<attr name="bar_width" format="dimension"/>
|
|
<attr name="bar_gap" format="dimension"/>
|
|
<attr name="bar_min_height" format="dimension"/>
|
|
<attr name="bar_corner_radius" format="dimension"/>
|
|
<attr name="bar_background_color" format="color"/>
|
|
<attr name="bar_progress_color" format="color"/>
|
|
<!-- Corresponds to WaveformSeekBar.WaveGravity enum. -->
|
|
<attr name="bar_gravity" format="enum">
|
|
<enum name="top" value="1" />
|
|
<enum name="center" value="2" />
|
|
<enum name="bottom" value="3" />
|
|
</attr>
|
|
</declare-styleable>
|
|
|
|
<declare-styleable name="KeyboardPageSearchView">
|
|
<attr name="show_always" format="boolean" />
|
|
<attr name="search_bar_tint" format="color|reference" />
|
|
<attr name="search_icon_tint" format="color|reference" />
|
|
<attr name="search_hint" format="string|reference" />
|
|
<attr name="click_only" format="boolean" />
|
|
</declare-styleable>
|
|
|
|
<attr name="preferenceCornerRadius" format="dimension|reference"/>
|
|
<attr name="reactionsPillSelectedTextColor" format="color|reference"/>
|
|
<attr name="reactionsPillSelectedBackground" format="color|reference"/>
|
|
<attr name="reactionsPillNormalBackground" format="color|reference"/>
|
|
<attr name="reactionsPillNormalTextColor" format="color|reference"/>
|
|
|
|
</resources>
|