Available Methods
- getColor ( )
- key_actionBarDefaultIcon ( )
- key_listSelector ( )
- ThemeInfo ( )
- key_windowBackgroundWhite ( )
- key_actionBarDefault ( )
- key_actionBarDefaultTitle ( )
- key_windowBackgroundGray ( )
- key_windowBackgroundWhiteGrayText2 ( )
- key_avatar_backgroundViolet ( )
- dividerPaint ( )
- key_actionBarDefaultSelector ( )
- key_windowBackgroundWhiteBlackText ( )
- avatar_savedDrawable ( )
- key_divider ( )
- key_windowBackgroundWhiteGrayText3 ( )
- key_windowBackgroundGrayShadow ( )
- getCurrentTheme ( )
- key_avatar_backgroundGreen ( )
- key_avatar_backgroundOrange ( )
- key_avatar_backgroundRed ( )
- key_avatar_backgroundPink ( )
- key_windowBackgroundWhiteBlueHeader ( )
- key_windowBackgroundWhiteValueText ( )
- getCurrentNightTheme ( )
- key_windowBackgroundWhiteGrayText4 ( )
- avatar_photoDrawable ( )
- key_avatar_backgroundCyan ( )
- key_switchThumb ( )
- key_emptyListPlaceholder ( )
- key_progressCircle ( )
- key_windowBackgroundWhiteHintText ( )
- hasThemeKey ( )
- key_radioBackgroundChecked ( )
- avatar_broadcastDrawable ( )
- key_avatar_text ( )
- setDrawableColor ( )
- key_windowBackgroundWhiteRedText5 ( )
- key_windowBackgroundWhiteInputFieldActivated ( )
- setSelectorDrawableColor ( )
- key_windowBackgroundWhiteRedText4 ( )
- key_windowBackgroundWhiteBlueText ( )
- key_switchTrackChecked ( )
- key_actionBarDefaultSubmenuBackground ( )
- key_fastScrollText ( )
- key_graySectionText ( )
- hasWallpaperFromTheme ( )
- isCustomTheme ( )
- key_groupcreate_sectionShadow ( )
- key_graySection ( )
- key_radioBackground ( )
- setRippleDrawableForceSoftware ( )
- autoNightSunriseTime ( )
- ThemeAccent ( )
- key_switchTrack ( )
- createDialogsResources ( )
- changeColorAccent ( )
- key_windowBackgroundWhiteGrayIcon ( )
- key_windowBackgroundWhiteInputField ( )
- createRoundRectDrawable ( )
- key_login_progressOuter ( )
- key_windowBackgroundWhiteLinkText ( )
- key_avatar_backgroundBlue ( )
- autoNightScheduleByLocation ( )
- key_avatar_backgroundInProfileBlue ( )
- key_switchThumbChecked ( )
- getEventType ( )
- key_checkboxSquareBackground ( )
- key_windowBackgroundWhiteRedText2 ( )
- MessageDrawable ( )
- key_actionBarDefaultSearchPlaceholder ( )
- key_contextProgressOuter2 ( )
- key_switch2Check ( )
- key_avatar_actionBarSelectorBlue ( )
- key_windowBackgroundWhiteGrayText ( )
- key_chat_attachAudioIcon ( )
- dialogs_botDrawable ( )
- key_windowBackgroundWhiteGrayLine ( )
- key_chats_actionBackground ( )
- key_chats_menuTopBackground ( )
- key_fastScrollActive ( )
- key_groupcreate_checkbox ( )
- chat_fileStatesDrawable ( )
- key_stickers_menu ( )
- key_avatar_backgroundActionBarBlue ( )
- OverrideWallpaperInfo ( )
- key_chat_attachGalleryIcon ( )
- key_actionBarDefaultSearch ( )
- key_chats_menuTopBackgroundCats ( )
- key_chats_verifiedBackground ( )
- isWallpaperMotion ( )
- chat_roundVideoShadow ( )
- createCircleDrawableWithIcon ( )
- selectedAutoNightType ( )
- key_contextProgressInner2 ( )
- key_groupcreate_spanText ( )
- key_groupcreate_sectionText ( )
- setCombinedDrawableColor ( )
- dialogs_searchNameEncryptedPaint ( )
- setCurrentNightTheme ( )
- AUTO_NIGHT_TYPE_SYSTEM
- refreshThemeColors ( )
- dialogs_verifiedDrawable ( )
- key_featuredStickers_addedIcon ( )
Related Classes
- android.content.Context
- android.view.View
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.os.Build
- android.widget.ImageView
- android.graphics.Canvas
- android.text.TextUtils
- android.graphics.Paint
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.SharedPreferences
- android.widget.FrameLayout
- android.view.Gravity
- android.util.TypedValue
- android.graphics.PorterDuff
- android.animation.ObjectAnimator
- android.view.inputmethod.EditorInfo
- androidx.recyclerview.widget.RecyclerView
- androidx.recyclerview.widget.LinearLayoutManager
- android.graphics.PorterDuffColorFilter
- org.telegram.messenger.MessagesController
- org.telegram.messenger.SharedConfig
Java Code Examples for org.telegram.ui.ActionBar.Theme#refreshThemeColors()
The following examples show how to use
org.telegram.ui.ActionBar.Theme#refreshThemeColors() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThemePreviewActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private void applyColor(int color, int num) { if (colorType == 1) { accent.accentColor = color; Theme.refreshThemeColors(); } else if (colorType == 2) { if (lastPickedColorNum == 0) { accent.backgroundOverrideColor = color; } else { int defaultGradientColor = Theme.getDefaultAccentColor(Theme.key_chat_wallpaper_gradient_to); if (color == 0 && defaultGradientColor != 0) { accent.backgroundGradientOverrideColor = (1L << 32); } else { accent.backgroundGradientOverrideColor = color; } } Theme.refreshThemeColors(); colorPicker.setHasChanges(hasChanges(colorType)); } else if (colorType == 3) { if (lastPickedColorNum == 0) { accent.myMessagesAccentColor = color; } else { accent.myMessagesGradientAccentColor = color; } Theme.refreshThemeColors(); listView2.invalidateViews(); colorPicker.setHasChanges(hasChanges(colorType)); } for (int i = 0, size = themeDescriptions.size(); i < size; i++) { ThemeDescription description = themeDescriptions.get(i); description.setColor(Theme.getColor(description.getCurrentKey()), false, false); } listView.invalidateViews(); listView2.invalidateViews(); if (dotsContainer != null) { dotsContainer.invalidate(); } }
Example 2
Source File: ThemePreviewActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
private void applyColor(int color, int num) { if (colorType == 1) { accent.accentColor = color; Theme.refreshThemeColors(); } else if (colorType == 2) { if (lastPickedColorNum == 0) { accent.backgroundOverrideColor = color; } else { int defaultGradientColor = Theme.getDefaultAccentColor(Theme.key_chat_wallpaper_gradient_to); if (color == 0 && defaultGradientColor != 0) { accent.backgroundGradientOverrideColor = (1L << 32); } else { accent.backgroundGradientOverrideColor = color; } } Theme.refreshThemeColors(); colorPicker.setHasChanges(hasChanges(colorType)); } else if (colorType == 3) { if (lastPickedColorNum == 0) { accent.myMessagesAccentColor = color; } else { accent.myMessagesGradientAccentColor = color; } Theme.refreshThemeColors(); listView2.invalidateViews(); colorPicker.setHasChanges(hasChanges(colorType)); } for (int i = 0, size = themeDescriptions.size(); i < size; i++) { ThemeDescription description = themeDescriptions.get(i); description.setColor(Theme.getColor(description.getCurrentKey()), false, false); } listView.invalidateViews(); listView2.invalidateViews(); if (dotsContainer != null) { dotsContainer.invalidate(); } }