mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Orange audio seekbar.
This commit is contained in:
@@ -91,12 +91,6 @@ public class Theme {
|
||||
public static final int MSG_OUT_AUDIO_DURATION_TEXT_COLOR = 0xff65b05b;
|
||||
public static final int MSG_IN_AUDIO_DURATION_SELECTED_TEXT_COLOR = 0xff89b4c1;
|
||||
public static final int MSG_OUT_AUDIO_DURATION_SELECTED_TEXT_COLOR = 0xff65b05b;
|
||||
public static final int MSG_IN_AUDIO_SEEKBAR_COLOR = 0xffe4eaf0;
|
||||
public static final int MSG_OUT_AUDIO_SEEKBAR_COLOR = 0xffbbe3ac;
|
||||
public static final int MSG_IN_AUDIO_SEEKBAR_SELECTED_COLOR = 0xffbcdee8;
|
||||
public static final int MSG_OUT_AUDIO_SEEKBAR_SELECTED_COLOR = 0xffa9dd96;
|
||||
public static final int MSG_IN_AUDIO_SEEKBAR_FILL_COLOR = 0xff72b5e8;
|
||||
public static final int MSG_OUT_AUDIO_SEEKBAR_FILL_COLOR = 0xff78c272;
|
||||
public static final int MSG_IN_VOICE_SEEKBAR_COLOR = 0xffdee5eb;
|
||||
public static final int MSG_OUT_VOICE_SEEKBAR_COLOR = 0xffbbe3ac;
|
||||
public static final int MSG_IN_VOICE_SEEKBAR_SELECTED_COLOR = 0xffbcdee8;
|
||||
@@ -113,7 +107,10 @@ public class Theme {
|
||||
public static final int MSG_LINK_SELECT_BACKGROUND_COLOR = 0x3362a9e3;
|
||||
public static final int MSG_TEXT_SELECT_BACKGROUND_COLOR = 0x6662a9e3;
|
||||
public static final int MSG_DOC_NAME_COLOR = 0xFF3093e0; // similar color as the file-icon
|
||||
|
||||
public static final int MSG_AUDIO_NAME_COLOR = 0xFFed824e; // similar color as the audio-icon
|
||||
public static final int MSG_AUDIO_SEEKBAR_DARK_COLOR = 0xFFf68751;
|
||||
public static final int MSG_AUDIO_SEEKBAR_LITE_COLOR = 0xFFfbc8af;
|
||||
|
||||
public static Drawable backgroundDrawableIn;
|
||||
public static Drawable backgroundDrawableInSelected;
|
||||
|
||||
@@ -1119,20 +1119,15 @@ public class ChatMessageCell extends BaseCell implements SeekBar.SeekBarDelegate
|
||||
|
||||
if (messageObject.isOutOwner()) {
|
||||
seekBarWaveform.setColors(Theme.MSG_OUT_VOICE_SEEKBAR_COLOR, Theme.MSG_OUT_VOICE_SEEKBAR_FILL_COLOR, Theme.MSG_OUT_VOICE_SEEKBAR_SELECTED_COLOR);
|
||||
seekBar.setColors(Theme.MSG_OUT_AUDIO_SEEKBAR_COLOR, Theme.MSG_OUT_AUDIO_SEEKBAR_FILL_COLOR, Theme.MSG_OUT_AUDIO_SEEKBAR_SELECTED_COLOR);
|
||||
} else {
|
||||
seekBarWaveform.setColors(Theme.MSG_IN_VOICE_SEEKBAR_COLOR, Theme.MSG_IN_VOICE_SEEKBAR_FILL_COLOR, Theme.MSG_IN_VOICE_SEEKBAR_SELECTED_COLOR);
|
||||
seekBar.setColors(Theme.MSG_IN_AUDIO_SEEKBAR_COLOR, Theme.MSG_IN_AUDIO_SEEKBAR_FILL_COLOR, Theme.MSG_IN_AUDIO_SEEKBAR_SELECTED_COLOR);
|
||||
}
|
||||
seekBar.setColors(Theme.MSG_AUDIO_SEEKBAR_LITE_COLOR, Theme.MSG_AUDIO_SEEKBAR_DARK_COLOR, Theme.MSG_AUDIO_SEEKBAR_DARK_COLOR);
|
||||
seekBarWaveform.setMessageObject(messageObject);
|
||||
return 0;
|
||||
} else if (MessageObject.isMusicDocument(documentAttach)) {
|
||||
documentAttachType = DOCUMENT_ATTACH_TYPE_MUSIC;
|
||||
if (messageObject.isOutOwner()) {
|
||||
seekBar.setColors(Theme.MSG_OUT_AUDIO_SEEKBAR_COLOR, Theme.MSG_OUT_AUDIO_SEEKBAR_FILL_COLOR, Theme.MSG_OUT_AUDIO_SEEKBAR_SELECTED_COLOR);
|
||||
} else {
|
||||
seekBar.setColors(Theme.MSG_IN_AUDIO_SEEKBAR_COLOR, Theme.MSG_IN_AUDIO_SEEKBAR_FILL_COLOR, Theme.MSG_IN_AUDIO_SEEKBAR_SELECTED_COLOR);
|
||||
}
|
||||
seekBar.setColors(Theme.MSG_AUDIO_SEEKBAR_LITE_COLOR, Theme.MSG_AUDIO_SEEKBAR_DARK_COLOR, Theme.MSG_AUDIO_SEEKBAR_DARK_COLOR);
|
||||
|
||||
maxWidth = maxWidth - dp(86);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user