Skip to content

Commit

Permalink
Add default styles for polls
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Nov 15, 2024
1 parent e0a8fd2 commit 44c13af
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3063,8 +3063,26 @@ public final class io/getstream/chat/android/ui/feature/messages/list/adapter/vi
}

public final class io/getstream/chat/android/ui/feature/messages/list/adapter/view/PollViewStyle : io/getstream/chat/android/ui/helper/ViewStyle {
public static final field INSTANCE Lio/getstream/chat/android/ui/feature/messages/list/adapter/view/PollViewStyle;
public fun <init> (Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Landroid/graphics/drawable/Drawable;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;)V
public final fun component1 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component2 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component3 ()Landroid/graphics/drawable/Drawable;
public final fun component4 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component5 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component6 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component7 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun component8 ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun copy (Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Landroid/graphics/drawable/Drawable;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;)Lio/getstream/chat/android/ui/feature/messages/list/adapter/view/PollViewStyle;
public static synthetic fun copy$default (Lio/getstream/chat/android/ui/feature/messages/list/adapter/view/PollViewStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Landroid/graphics/drawable/Drawable;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;Lio/getstream/chat/android/ui/font/TextStyle;ILjava/lang/Object;)Lio/getstream/chat/android/ui/feature/messages/list/adapter/view/PollViewStyle;
public fun equals (Ljava/lang/Object;)Z
public final fun getPollCloseTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollOptionCheckDrawable ()Landroid/graphics/drawable/Drawable;
public final fun getPollOptionTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollOptionVotesTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollResultsTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollShowAllOptionsTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollSubtitleTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public final fun getPollTitleTextStyle ()Lio/getstream/chat/android/ui/font/TextStyle;
public fun hashCode ()I
public fun toString ()Ljava/lang/String;
}
Expand Down
25 changes: 25 additions & 0 deletions stream-chat-android-ui-components/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,31 @@
<item name="streamUiMediaAttachmentMoreCountTextStyle">normal</item>
</style>

<style name="StreamUi.MessageList.Poll" parent="StreamUi">
<item name="streamUiPollTitleTextSize">@dimen/stream_ui_text_large</item>
<item name="streamUiPollTitleTextColor">@color/stream_ui_text_color_primary</item>
<item name="streamUiPollTitleTextStyle">normal</item>
<item name="streamUiPollOptionCheckDrawable">@drawable/stream_ui_poll_option_selector</item>
<item name="streamUiPollSubtitleTextSize">@dimen/stream_ui_text_medium</item>
<item name="streamUiPollSubtitleTextColor">@color/stream_ui_text_color_secondary</item>
<item name="streamUiPollSubtitleTextStyle">normal</item>
<item name="streamUiPollOptionTextSize">@dimen/stream_ui_text_medium</item>
<item name="streamUiPollOptionTextColor">@color/stream_ui_text_color_primary</item>
<item name="streamUiPollOptionTextStyle">normal</item>
<item name="streamUiPollVotesTextSize">@dimen/stream_ui_text_medium</item>
<item name="streamUiPollVotesTextColor">@color/stream_ui_text_color_primary</item>
<item name="streamUiPollVotesTextStyle">normal</item>
<item name="streamUiPollCloseTextSize">@dimen/stream_ui_text_large</item>
<item name="streamUiPollCloseTextColor">@color/stream_ui_accent_blue</item>
<item name="streamUiPollCloseTextStyle">normal</item>
<item name="streamUiPollResultsTextSize">@dimen/stream_ui_text_large</item>
<item name="streamUiPollResultsTextColor">@color/stream_ui_accent_blue</item>
<item name="streamUiPollResultsTextStyle">normal</item>
<item name="streamUiPollShowAllOptionsTextSize">@dimen/stream_ui_text_large</item>
<item name="streamUiPollShowAllOptionsTextColor">@color/stream_ui_accent_blue</item>
<item name="streamUiPollShowAllOptionsTextStyle">normal</item>
</style>

<style name="StreamUi.MessageList.GiphyMediaAttachment" parent="StreamUi">
<item name="streamUiGiphyMediaAttachmentProgressIcon">@drawable/stream_ui_rotating_indeterminate_progress_gradient</item>
<item name="streamUiGiphyMediaAttachmentGiphyIcon">@drawable/stream_ui_giphy_label</item>
Expand Down

0 comments on commit 44c13af

Please sign in to comment.