diff --git a/TMessagesProj/src/main/assets/monet_dark.attheme b/TMessagesProj/src/main/assets/monet_dark.attheme new file mode 100644 index 000000000..96bb3493f --- /dev/null +++ b/TMessagesProj/src/main/assets/monet_dark.attheme @@ -0,0 +1,754 @@ +actionBarActionModeDefault=n1_900 +actionBarActionModeDefaultIcon=a1_100 +actionBarActionModeDefaultSelector=n1_50 +actionBarActionModeDefaultSubtitle=a1_100 +actionBarActionModeDefaultTop=a1_100 +actionBarBrowser=n1_900 +actionBarDefault=n1_900 +actionBarDefaultArchived=n1_900 +actionBarDefaultArchivedIcon=a1_200 +actionBarDefaultArchivedSearch=a2_400 +actionBarDefaultArchivedSelector=n2_800 +actionBarDefaultArchivedTitle=a1_100 +actionBarDefaultIcon=a1_100 +actionBarDefaultSearch=n1_50 +actionBarDefaultSearchArchivedPlaceholder=a1_1000 +actionBarDefaultSearchPlaceholder=a1_100 +actionBarDefaultSelector=n2_800 +actionBarDefaultSubmenuBackground=n1_900 +actionBarDefaultSubmenuItem=n1_50 +actionBarDefaultSubmenuItemIcon=a1_100 +actionBarDefaultSubtitle=n1_50 +actionBarDefaultTitle=a2_0 +actionBarTabActiveText=a1_100 +actionBarTabLine=a1_100 +actionBarTabSelector=a1_100 +actionBarTabUnactiveText=n1_600 +actionBarWhiteSelector=n2_800 +Archived=a1_100 +avatar_actionBarIconBlue=a1_100 +avatar_actionBarSelectorBlue=a1_100 +avatar_actionBarSelectorCyan=a1_100 +avatar_actionBarSelectorGreen=a1_100 +avatar_actionBarSelectorOrange=a1_100 +avatar_actionBarSelectorPink=a1_100 +avatar_actionBarSelectorRed=a1_100 +avatar_actionBarSelectorViolet=a1_100 +avatar_backgroundActionBarBlue=n1_900 +avatar_backgroundActionBarCyan=n2_800 +avatar_backgroundActionBarGreen=n1_900 +avatar_backgroundActionBarOrange=n2_800 +avatar_backgroundActionBarPink=n2_800 +avatar_backgroundActionBarRed=n2_800 +avatar_backgroundActionBarViolet=n2_800 +avatar_backgroundArchived=n2_800 +avatar_backgroundArchivedHidden=n2_800 +avatar_backgroundBlue=n2_800 +avatar_backgroundCyan=n2_800 +avatar_backgroundGreen=n2_800 +avatar_backgroundGroupCreateSpanBlue=a1_100 +avatar_backgroundInProfileBlue=n2_800 +avatar_backgroundOrange=n2_800 +avatar_backgroundPink=n2_800 +avatar_backgroundRed=n2_800 +avatar_backgroundSaved=n2_800 +avatar_backgroundViolet=n2_800 +avatar_nameInMessageBlue=a1_400 +avatar_nameInMessageCyan=a1_400 +avatar_nameInMessageGreen=a1_400 +avatar_nameInMessageOrange=a1_400 +avatar_nameInMessagePink=a1_400 +avatar_nameInMessageRed=a1_400 +avatar_nameInMessageViolet=a1_400 +avatar_subtitleInProfileBlue=n1_50 +avatar_subtitleInProfileCyan=n1_50 +avatar_subtitleInProfileGreen=n1_50 +avatar_subtitleInProfileOrange=a1_100 +avatar_subtitleInProfilePink=a1_100 +avatar_subtitleInProfileRed=n1_50 +avatar_subtitleInProfileViolet=n1_900 +avatar_text=a1_100 +calls_callReceivedGreenIcon=monetGreenCall +calls_callReceivedRedIcon=monetRedCall +changephoneinfo_image2=a1_100 +changephoneinfo_image=a1_100 +chats_actionBackground=a1_700 +chats_actionIcon=a1_100 +chats_actionMessage=a1_200 +chats_actionPressedBackground=a2_700 +chats_actionUnreadBackground=n2_800 +chats_actionUnreadIcon=a1_100 +chats_actionUnreadPressedBackground=a1_100 +chats_archiveBackground=n2_800 +chats_archiveIcon=a3_200 +chats_archivePinBackground=n2_800 +chats_archiveText=a3_200 +chats_attachMessage=a1_100 +chats_date=n1_50 +chats_draft=a1_400 +chats_lockIcon=a1_600 +chats_mentionIcon=n1_900 +chats_menuBackground=n1_900 +chats_menuCloud=n1_50 +chats_menuCloudBackgroundCats=n1_900 +chats_menuItemCheck=a3_200 +chats_menuItemIcon=a1_100 +chats_menuItemText=n1_50 +chats_menuName=a1_100 +chats_menuPhone=n1_50 +chats_menuPhoneCats=n1_50 +chats_menuTopBackgroundCats=n1_900 +chats_menuTopShadow=n1_900 +chats_message=n1_300 +chats_messageArchived=n1_300 +chats_message_threeLines=n1_300 +chats_muteIcon=a1_100 +chats_name=n1_50 +chats_nameArchived=a2_300 +chats_nameIcon=n1_900 +chats_nameMessage=a1_100 +chats_nameMessageArchived=a1_100 +chats_nameMessageArchived_threeLines=n1_200 +chats_nameMessage_threeLines=n1_200 +chats_onlineCircle=a1_200 +chats_pinnedIcon=a1_500 +chats_pinnedOverlay=n1_900 +chats_secretIcon=a1_100 +chats_secretName=a1_100 +chats_sendReadCheck=a1_600 +chats_sentCheck=a2_100 +chats_sentClock=a2_100 +chats_sentError=monetRedDark +chats_sentErrorIcon=monetRedDark +chats_sentReadCheck=a2_100 +chats_tabletSelectedOverlay=268435455 +chats_tabUnreadActiveBackground=a1_100 +chats_tabUnreadUnactiveBackground=n1_600 +chats_unreadCounter=a1_100 +chats_unreadCounterMuted=a2_600 +chats_unreadCounterText=n1_900 +chats_verifiedBackground=a1_100 +chats_verifiedCheck=n1_900 +chat_addContact=a1_100 +chat_adminSelectedText=n1_50 +chat_adminText=n2_50 +chat_attachActiveTab=a1_100 +chat_attachAudioBackground=a1_500 +chat_attachAudioIcon=a1_50 +chat_attachAudioText=a1_100 +chat_attachCameraIcon=a1_100 +chat_attachCheckBoxBackground=n2_800 +chat_attachCheckBoxCheck=a1_100 +chat_attachContactBackground=a1_500 +chat_attachContactIcon=a1_50 +chat_attachContactText=a1_100 +chat_attachEmptyImage=a1_100 +chat_attachFileBackground=a1_500 +chat_attachFileIcon=a1_50 +chat_attachFileText=a1_100 +chat_attachGalleryBackground=a1_500 +chat_attachGalleryIcon=a1_50 +chat_attachGalleryText=a1_100 +chat_attachHideBackground=n2_800 +chat_attachLocationBackground=a1_500 +chat_attachLocationIcon=a1_50 +chat_attachLocationText=a1_100 +chat_attachMediaBanBackground=a1_100 +chat_attachMediaBanText=n1_50 +chat_attachMessage=n1_50 +chat_attachPermissionImage=a1_200 +chat_attachPermissionMark=monetRedDark +chat_attachPermissionText=a1_200 +chat_attachPhotoBackground=333639417 +chat_attachPollBackground=a1_500 +chat_attachPollIcon=a1_50 +chat_attachPollText=a1_100 +chat_attachUnactive=n2_800 +chat_attachUnactiveTab=n1_600 +chat_BlurAlpha=-1694498816 +chat_botButtonText=a1_100 +chat_botKeyboardButtonBackground=n1_500 +chat_botKeyboardButtonBackgroundPressed=n1_800 +chat_botKeyboardButtonText=n1_50 +chat_botProgress=a3_50 +chat_botSwitchToInlineText=n1_50 +chat_emojiBottomPanelIcon=a2_400 +chat_emojiPanelBackground=n1_900 +chat_emojiPanelBackspace=a1_100 +chat_emojiPanelBadgeBackground=n1_900 +chat_emojiPanelBadgeText=n1_50 +chat_emojiPanelEmptyText=n1_50 +chat_emojiPanelIcon=a2_400 +chat_emojiPanelIconSelected=a1_100 +chat_emojiPanelIconSelector=a1_100 +chat_emojiPanelMasksIcon=a1_100 +chat_emojiPanelMasksIconSelected=a1_50 +chat_emojiPanelNewTrending=a1_100 +chat_emojiPanelSelectorLine=a1_100 +chat_emojiPanelShadowLine=n1_900 +chat_emojiPanelStickerPackSelector=n2_800 +chat_emojiPanelStickerPackSelectorLine=a1_100 +chat_emojiPanelStickerSetName=a2_100 +chat_emojiPanelStickerSetNameHighlight=a3_200 +chat_emojiPanelStickerSetNameIcon=a1_100 +chat_emojiPanelTrendingDescription=n1_900 +chat_emojiPanelTrendingTitle=n1_50 +chat_emojiSearchBackground=n2_800 +chat_emojiSearchIcon=a1_200 +chat_fieldOverlayText=a1_100 +chat_gifSaveHintBackground=n2_900 +chat_gifSaveHintText=a1_100 +chat_goDownButton=n2_800 +chat_goDownButtonCounter=n1_50 +chat_goDownButtonCounterBackground=n2_800 +chat_goDownButtonIcon=n1_50 +chat_goDownButtonShadow=a1_100 +chat_inAudioCacheSeekbar=a1_100 +chat_inAudioDurationSelectedText=n1_50 +chat_inAudioDurationText=n1_50 +chat_inAudioPerfomerSelectedText=a1_100 +chat_inAudioPerfomerText=a1_100 +chat_inAudioProgress=a1_100 +chat_inAudioSeekbar=a2_300 +chat_inAudioSeekbarFill=a1_100 +chat_inAudioSeekbarSelected=a1_100 +chat_inAudioSelectedProgress=a1_100 +chat_inAudioTitleText=n1_50 +chat_inBubble=n2_800 +chat_inBubbleSelected=n2_800 +chat_inBubbleShadow=a1_100 +chat_inContactBackground=n1_900 +chat_inContactIcon=a1_100 +chat_inContactNameText=n1_50 +chat_inContactPhoneSelectedText=n1_50 +chat_inContactPhoneText=n1_50 +chat_inDownCall=a1_100 +chat_inFileBackground=n1_900 +chat_inFileBackgroundSelected=n1_900 +chat_inFileIcon=a1_100 +chat_inFileInfoSelectedText=n1_50 +chat_inFileInfoText=n1_50 +chat_inFileNameText=n1_50 +chat_inFileProgress=a1_100 +chat_inFileProgressSelected=a1_100 +chat_inFileSelected=n1_900 +chat_inFileSelectedIcon=n1_900 +chat_inForwardedNameText=n1_50 +chat_inInstant=a1_100 +chat_inInstantSelected=a1_100 +chat_inlineResultIcon=a1_100 +chat_inLoader=a1_100 +chat_inLoaderPhoto=a1_100 +chat_inLoaderPhoto=n1_900 +chat_inLoaderPhotoIcon=a1_100 +chat_inLoaderPhotoIconSelected=a1_100 +chat_inLoaderPhotoSelected=a1_100 +chat_inLoaderSelected=a1_100 +chat_inLocationBackground=n1_900 +chat_inLocationIcon=a1_100 +chat_inMediaIcon=n1_900 +chat_inMediaIconSelected=n1_900 +chat_inMenu=a1_100 +chat_inMenuSelected=a1_100 +chat_inPollCorrectAnswer=a3_200 +chat_inPreviewInstantSelectedText=n1_50 +chat_InPreviewInstantText=a1_100 +chat_inPreviewInstantText=n1_50 +chat_inPreviewLine=n1_900 +chat_inReactionButtonBackground=a1_300 +chat_inReactionButtonText=n1_50 +chat_inReactionButtonTextSelected=n1_900 +chat_inReplyLine=a1_100 +chat_inReplyMediaMessageSelectedText=n1_50 +chat_inReplyMediaMessageText=n1_50 +chat_inReplyMessageText=n1_50 +chat_inReplyNameText=n1_50 +chat_inSentClock=n1_50 +chat_inSentClockSelected=n1_50 +chat_inSiteNameText=n1_50 +chat_inTextSelectionHighlight=1237106360 +chat_inTimeSelectedText=n1_50 +chat_inTimeText=n1_50 +chat_inUpCall=monetRedCall +chat_inVenueInfoSelectedText=a1_100 +chat_inVenueInfoText=n1_50 +chat_inViaBotNameText=a1_100 +chat_inViews=n1_50 +chat_inViewsSelected=n1_50 +chat_inVoiceSeekbar=a2_200 +chat_inVoiceSeekbarFill=a1_100 +chat_inVoiceSeekbarSelected=a2_300 +chat_linkSelectBackground=n1_300 +chat_lockIcon=a1_100 +chat_mediaBroadcast=a1_700 +chat_mediaInfoText=a1_100 +chat_mediaLoaderPhoto=a1_700 +chat_mediaLoaderPhotoIcon=a1_100 +chat_mediaLoaderPhotoIconSelected=a1_100 +chat_mediaLoaderPhotoSelected=a1_700 +chat_mediaMenu=a1_100 +chat_mediaProgress=a1_100 +chat_mediaSentCheck=n1_50 +chat_mediaSentClock=n1_50 +chat_mediaTimeBackground=a1_600 +chat_mediaTimeText=n1_50 +chat_mediaViews=n1_50 +chat_messageLinkIn=a3_100 +chat_messageLinkOut=a3_500 +chat_messagePanelBackground=n1_900 +chat_messagePanelCancelInlineBot=a1_100 +chat_messagePanelCursor=a1_100 +chat_messagePanelHint=n1_300 +chat_messagePanelIcons=a2_200 +chat_messagePanelSend=a2_200 +chat_messagePanelShadow=n1_900 +chat_messagePanelText=n1_50 +chat_messagePanelVideoFrame=a1_100 +chat_messagePanelVoiceBackground=a1_100 +chat_messagePanelVoiceDelete=a1_100 +chat_messagePanelVoiceDuration=a1_100 +chat_messagePanelVoicePressed=n1_900 +chat_messagePanelVoiceShadow=a1_200 +chat_messageTextIn=n1_50 +chat_messageTextOut=n1_900 +chat_muteIcon=a1_100 +chat_onlineCircle=a1_100 +chat_outAudioCacheSeekbar=n1_900 +chat_outAudioDurationSelectedText=n1_900 +chat_outAudioDurationText=n1_900 +chat_outAudioPerfomerSelectedText=n1_900 +chat_outAudioPerfomerText=n1_900 +chat_outAudioProgress=n1_900 +chat_outAudioSeekbar=a2_100 +chat_outAudioSeekbarFill=n1_900 +chat_outAudioSeekbarSelected=n1_900 +chat_outAudioSelectedProgress=n1_900 +chat_outAudioTitleText=n1_900 +chat_outBroadcast=a1_100 +chat_outBubble=a1_100 +chat_outBubbleGradientSelectedOverlay=a1_100 +chat_outBubbleSelected=a1_100 +chat_outBubbleShadow=n2_800 +chat_outContactBackground=n1_900 +chat_outContactIcon=n1_900 +chat_outContactNameText=n1_900 +chat_outContactPhoneSelectedText=n1_900 +chat_outContactPhoneText=n1_900 +chat_outFileBackground=n1_900 +chat_outFileBackgroundSelected=a1_100 +chat_outFileIcon=n1_900 +chat_outFileInfoSelectedText=n1_900 +chat_outFileInfoText=n1_900 +chat_outFileNameText=n1_900 +chat_outFileProgress=n1_900 +chat_outFileProgressSelected=n1_900 +chat_outFileSelectedIcon=n1_900 +chat_outForwardedNameText=n1_900 +chat_outInstant=n1_900 +chat_outInstantSelected=n1_900 +chat_outLoader=n1_900 +chat_outLoaderPhoto=a1_100 +chat_outLoaderPhotoIcon=a1_100 +chat_outLoaderPhotoIconSelected=n1_900 +chat_outLoaderPhotoSelected=n1_900 +chat_outLoaderSelected=n1_900 +chat_outLocationBackground=n1_900 +chat_outLocationIcon=n1_900 +chat_outMediaIcon=a1_100 +chat_outMediaIconSelected=a1_100 +chat_outMenu=n1_900 +chat_outMenuSelected=n1_900 +chat_outPollCorrectAnswer=a3_200 +chat_outPreviewInstantSelectedText=n1_900 +chat_outPreviewInstantText=n1_900 +chat_outPreviewInstantText=n1_900 +chat_outPreviewLine=n1_900 +chat_outReactionButtonBackground=a1_500 +chat_outReplyLine=n1_900 +chat_outReplyMediaMessageSelectedText=n1_900 +chat_outReplyMediaMessageText=n1_900 +chat_outReplyMessageText=n1_900 +chat_outReplyNameText=n1_900 +chat_outSentCheck=a1_600 +chat_outSentCheckRead=a1_600 +chat_outSentCheckReadSelected=a1_600 +chat_outSentCheckSelected=a1_600 +chat_outSentClock=a1_600 +chat_outSentClockSelected=a1_600 +chat_outSiteNameText=n1_900 +chat_outTextSelectionHighlight=n2_400 +chat_outTimeSelectedText=n1_900 +chat_outTimeText=n1_900 +chat_outUpCall=a1_600 +chat_outVenueInfoSelectedText=n1_900 +chat_outVenueInfoText=n1_900 +chat_outVenueNameText=n1_900 +chat_outViaBotNameText=n1_900 +chat_outViews=n1_900 +chat_outViewsSelected=n1_900 +chat_outVoiceSeekbar=n2_800 +chat_outVoiceSeekbarFill=n1_900 +chat_outVoiceSeekbarSelected=n1_900 +chat_previewDurationText=n1_50 +chat_previewGameText=n1_50 +chat_recordedVoiceBackground=n2_800 +chat_recordedVoiceDot=a1_100 +chat_recordedVoicePlayPause=a1_100 +chat_recordedVoicePlayPausePressed=a1_200 +chat_recordedVoiceProgress=n2_100 +chat_recordedVoiceProgressInner=a1_100 +chat_recordTime=n1_50 +chat_recordVoiceCancel=a1_100 +chat_replyPanelClose=a1_100 +chat_replyPanelIcons=a1_100 +chat_replyPanelLine=n1_900 +chat_replyPanelMessage=n1_50 +chat_replyPanelName=a1_100 +chat_reportSpam=a3_200 +chat_searchPanelIcons=a1_100 +chat_searchPanelText=n1_50 +chat_secretChatStatusText=n1_50 +chat_secretTimerBackground=a1_100 +chat_secretTimerText=n1_900 +chat_secretTimeText=a1_0 +chat_selectedBackground=a2_700 +chat_sentError=monetRedDark +chat_sentErrorIcon=monetRedDark +chat_serviceBackground=n2_800 +chat_serviceBackgroundSelected=n1_900 +chat_serviceIcon=a1_100 +chat_serviceLink=a1_100 +chat_serviceText=a1_100 +chat_status=n1_50 +chat_stickerNameText=n1_50 +chat_stickerReplyLine=a2_200 +chat_stickerReplyMessageText=n1_50 +chat_stickerReplyNameText=a2_200 +chat_stickersHintPanel=n1_900 +chat_stickerViaBotNameText=a1_100 +chat_textSelectBackground=n2_200 +chat_TextSelectionCursor=a3_400 +chat_topPanelBackground=n1_900 +chat_topPanelClose=a1_100 +chat_topPanelLine=a1_100 +chat_topPanelMessage=a1_100 +chat_topPanelTitle=a2_200 +chat_unreadMessagesStartArrowIcon=a1_100 +chat_unreadMessagesStartBackground=n1_900 +chat_unreadMessagesStartText=a1_100 +chat_wallpaper=n1_900 +checkbox=a1_100 +checkboxCheck=n1_900 +checkboxDisabled=a2_400 +checkboxSquareBackground=a1_100 +checkboxSquareCheck=n1_900 +checkboxSquareDisabled=a1_100 +checkboxSquareUnchecked=n2_500 +contacts_inviteBackground=a1_100 +contacts_inviteText=a1_1000 +contextProgressInner1=a1_100 +contextProgressInner2=n1_700 +contextProgressInner3=n1_600 +contextProgressInner4=a1_100 +contextProgressOuter1=n1_900 +contextProgressOuter2=a1_200 +contextProgressOuter3=a1_200 +contextProgressOuter4=n1_900 +dialogBackground=n1_900 +dialogBackgroundGray=n1_900 +dialogBadgeBackground=n1_900 +dialogBadgeText=a1_600 +dialogButton=a1_100 +dialogButtonSelector=a1_100 +dialogCameraIcon=a1_100 +dialogCheckboxSquareBackground=n1_900 +dialogCheckboxSquareCheck=n1_900 +dialogCheckboxSquareDisabled=a1_100 +dialogCheckboxSquareUnchecked=a1_100 +dialogFloatingButton=a1_200 +dialogFloatingButtonPressed=a2_200 +dialogFloatingIcon=n1_900 +dialogGrayLine=n1_900 +dialogIcon=a1_100 +dialogInputField=n1_900 +dialogInputFieldActivated=a1_100 +dialogLineProgress=a1_100 +dialogLineProgressBackground=n2_800 +dialogLinkSelection=a1_200 +dialogProgressCircle=a1_100 +dialogRadioBackground=a1_300 +dialogRadioBackgroundChecked=a1_100 +dialogRadioButton=n2_500 +dialogRedIcon=monetRedDark +dialogRoundCheckBox=a1_200 +dialogRoundCheckBoxCheck=n1_900 +dialogScrollGlow=n1_800 +dialogSearchBackground=n1_900 +dialogSearchHint=a1_100 +dialogSearchIcon=a1_100 +dialogSearchText=n1_50 +dialogShadowLine=n1_900 +dialogTextBlack=n1_50 +dialogTextBlue2=n1_50 +dialogTextBlue3=n1_50 +dialogTextBlue4=n1_50 +dialogTextBlue=a1_100 +dialogTextGray2=a1_100 +dialogTextGray3=a1_100 +dialogTextGray4=a1_100 +dialogTextGray=n1_50 +dialogTextHint=n1_300 +dialogTextLink=n1_50 +dialogTextRed2=monetRedDark +dialogTextRed=monetRedDark +dialogTopBackground=n1_900 +dialog_inlineProgress=a1_100 +dialog_inlineProgressBackground=n1_900 +dialog_liveLocationProgress=a1_100 +divider=n1_900 +emptyListPlaceholder=n2_800 +fastScrollActive=a1_600 +fastScrollInactive=a1_200 +fastScrollText=n1_50 +featuredStickers_addButton=a1_100 +featuredStickers_addButtonPressed=n2_800 +featuredStickers_addedIcon=a1_100 +featuredStickers_buttonProgress=a1_200 +featuredStickers_buttonText=n1_900 +featuredStickers_delButton=monetRedDark +featuredStickers_delButtonPressed=monetRedDark +featuredStickers_unread=a1_600 +files_folderIcon=a1_50 +files_folderIconBackground=a1_500 +files_iconText=a1_100 +graySection=n1_900 +groupcreate_checkboxCheck=a1_100 +groupcreate_cursor=a1_100 +groupcreate_hintText=n1_50 +groupcreate_offlineText=n1_50 +groupcreate_onlineText=n1_50 +groupcreate_sectionShadow=n1_0 +groupcreate_sectionText=n1_50 +groupcreate_spanBackground=a2_400 +groupcreate_spanDelete=n1_700 +groupcreate_spanText=n1_900 +inappPlayerBackground=n1_900 +inappPlayerClose=n1_50 +inappPlayerPerformer=n1_0 +inappPlayerPlayPause=a1_300 +inappPlayerTitle=n1_50 +key_chats_menuTopShadow=n1_900 +key_chat_messagePanelVoiceLock=a1_100 +key_chat_messagePanelVoiceLockBackground=n1_900 +key_chat_messagePanelVoiceLockShadow=n2_900 +key_graySectionText=a1_200 +key_player_progressCachedBackground=a2_300 +key_sheet_other=a1_100 +key_sheet_scrollUp=a1_100 +kvoipgroup_overlayAlertMutedByAdmin2=a3_100 +listSelector=n2_800 +listSelectorSDK21=n2_800 +location_liveLocationProgress=a1_100 +location_placeLocationBackground=n1_900 +location_sendLiveLocationBackground=a1_300 +location_sendLiveLocationIcon=a1_0 +location_sendLiveLocationText=a2_200 +location_sendLocationBackground=a1_300 +location_sendLocationIcon=a1_0 +location_sendLocationText=a2_200 +login_progressInner=a1_700 +login_progressOuter=a1_300 +musicPicker_buttonBackground=a1_200 +musicPicker_buttonIcon=a1_700 +musicPicker_checkbox=a1_200 +musicPicker_checkboxCheck=a1_900 +passport_authorizeBackground=n1_900 +passport_authorizeBackgroundSelected=n1_900 +passport_authorizeText=n1_50 +picker_badge=n1_50 +picker_badgeText=n1_900 +picker_disabledButton=a1_100 +picker_enabledButton=a1_100 +player_actionBar=n1_900 +player_actionBarItems=a1_100 +player_actionBarSelector=n2_800 +player_actionBarSubtitle=n1_50 +player_actionBarTitle=n1_50 +player_actionBarTop=n1_900 +player_background=n1_900 +player_button=a1_100 +player_buttonActive=a1_100 +player_placeholder=a1_100 +player_placeholderBackground=n1_900 +player_progress=a1_100 +player_progressBackground=a2_300 +player_seekBarBackground=n1_900 +player_time=a1_100 +profile_actionBackground=n2_800 +profile_actionIcon=a1_100 +profile_actionPressedBackground=a1_100 +profile_adminIcon=a1_100 +profile_creatorIcon=a1_100 +profile_status=n1_50 +profile_tabSelectedLine=a1_200 +profile_tabSelectedText=a1_200 +profile_tabSelector=n1_900 +profile_tabText=n1_300 +profile_title=n1_50 +profile_verifiedBackground=n1_50 +profile_verifiedCheck=n1_900 +progressCircle=a1_100 +radioBackground=a1_100 +radioBackgroundChecked=a1_100 +returnToCallBackground=n1_900 +returnToCallText=a1_100 +sessions_devicesImage=a1_600 +sharedMedia_actionMode=a3_200 +sharedMedia_linkPlaceholder=a1_100 +sharedMedia_linkPlaceholderText=n1_900 +sharedMedia_photoPlaceholder=n2_800 +sharedMedia_startStopLoadIcon=a1_100 +statisticChartActiveLine=a1_400 +statisticChartActivePickerChart=a1_400 +statisticChartBackZoomColor=a1_100 +statisticChartCheckboxInactive=n1_900 +statisticChartChevronColor=a1_100 +statisticChartHighlightColor=a1_100 +statisticChartHintLine=a1_100 +statisticChartInactivePickerChart=333639417 +statisticChartLine_blue=a1_400 +statisticChartLine_golden=a1_500 +statisticChartLine_green=a1_700 +statisticChartLine_indigo=a1_200 +statisticChartLine_lightblue=a3_200 +statisticChartLine_lightgreen=a3_700 +statisticChartLine_orange=a3_500 +statisticChartLine_red=a3_300 +statisticChartRipple=a1_800 +statisticChartSignature=a1_100 +statisticChartSignatureAlpha=a1_100 +stickers_menu=a1_100 +stickers_menuSelector=n2_700 +switch2Track=n2_500 +switch2TrackChecked=a1_100 +switchThumb=a1_100 +switchThumbChecked=a1_100 +switchTrack=n2_500 +switchTrackBlue=a1_100 +switchTrackBlueChecked=a1_100 +switchTrackBlueSelector=a1_100 +switchTrackBlueSelectorChecked=a1_100 +switchTrackBlueThumb=a1_100 +switchTrackBlueThumbChecked=n1_900 +switchTrackChecked=a1_100 +undo_background=n2_800 +undo_cancelColor=a1_100 +undo_cancelInfo=n1_50 +undo_infoColor=a1_100 +voipgroup_actionBar=n1_900 +voipgroup_actionBarItems=n1_0 +voipgroup_actionBarItemsSelector=n1_700 +voipgroup_actionBarSubtitle=n1_0 +voipgroup_actionBarUnscrolled=n1_900 +voipgroup_blueText=a3_200 +voipgroup_checkMenu=a1_200 +voipgroup_connectingProgress=a2_100 +voipgroup_dialogBackground=n1_900 +voipgroup_disabledButton=n2_800 +voipgroup_disabledButtonActive=n2_800 +voipgroup_disabledButtonActiveScrolled=n2_800 +voipgroup_emptyView=n1_900 +voipgroup_inviteMembersBackground=n1_900 +voipgroup_lastSeenText=n1_200 +voipgroup_lastSeenTextUnscrolled=n1_200 +voipgroup_leaveButton=a3_300 +voipgroup_leaveButtonScrolled=a3_200 +voipgroup_leaveCallMenu=a1_100 +voipgroup_listeningText=a2_300 +voipgroup_listSelector=n1_700 +voipgroup_listViewBackground=n2_800 +voipgroup_listViewBackgroundUnscrolled=n2_800 +voipgroup_muteButton2=a2_300 +voipgroup_muteButton3=a1_300 +voipgroup_muteButton=a1_500 +voipgroup_mutedByAdminGradient2=a3_200 +voipgroup_mutedByAdminGradient3=a3_400 +voipgroup_mutedByAdminGradient=a3_300 +voipgroup_mutedByAdminIcon=a3_400 +voipgroup_mutedByAdminMuteButton=a3_300 +voipgroup_mutedByAdminMuteButtonDisabled=a3_600 +voipgroup_mutedIcon=a2_400 +voipgroup_mutedIconUnscrolled=a2_400 +voipgroup_nameText=n1_0 +voipgroup_overlayAlertGradientMuted2=a2_200 +voipgroup_overlayAlertGradientMuted=a2_400 +voipgroup_overlayAlertGradientUnmuted2=a1_200 +voipgroup_overlayAlertGradientUnmuted=a1_400 +voipgroup_overlayAlertMutedByAdmin=a3_300 +voipgroup_overlayBlue1=a2_400 +voipgroup_overlayBlue2=a2_200 +voipgroup_overlayGreen1=a1_400 +voipgroup_overlayGreen2=a1_200 +voipgroup_scrollUp=a1_400 +voipgroup_searchBackground=n2_700 +voipgroup_searchPlaceholder=n2_200 +voipgroup_searchText=n1_0 +voipgroup_soundButton2=a1_400 +voipgroup_soundButton=a3_400 +voipgroup_soundButtonActive2=a1_400 +voipgroup_soundButtonActive2Scrolled=a1_400 +voipgroup_soundButtonActive=a3_400 +voipgroup_soundButtonActiveScrolled=a3_400 +voipgroup_speakingText=a1_100 +voipgroup_topPanelBlue1=n2_600 +voipgroup_topPanelBlue2=n2_300 +voipgroup_topPanelGray=n1_900 +voipgroup_topPanelGreen1=a1_400 +voipgroup_topPanelGreen2=a1_600 +voipgroup_unmuteButton2=a2_600 +voipgroup_unmuteButton=a2_500 +voipgroup_windowBackgroundWhiteInputField=n1_0 +voipgroup_windowBackgroundWhiteInputFieldActivated=n1_0 +wallpaperFileOffset=n1_900 +WhiteBlueIcon=a1_100 +windowBackgroundChecked=n1_900 +windowBackgroundCheckText=n1_50 +windowBackgroundGray=n1_900 +windowBackgroundGrayShadow=n1_900 +windowBackgroundUnchecked=n1_900 +windowBackgroundWhite=n1_900 +windowBackgroundWhiteBlackText=n1_50 +windowBackgroundWhiteBlueButton=a1_100 +windowBackgroundWhiteBlueHeader=a1_100 +windowBackgroundWhiteBlueIcon=a1_100 +windowBackgroundWhiteBlueText2=a2_200 +windowBackgroundWhiteBlueText3=a2_200 +windowBackgroundWhiteBlueText4=a2_200 +windowBackgroundWhiteBlueText5=a2_200 +windowBackgroundWhiteBlueText6=a2_200 +windowBackgroundWhiteBlueText7=a2_200 +windowBackgroundWhiteBlueText=n1_50 +windowBackgroundWhiteGrayIcon=a1_100 +windowBackgroundWhiteGrayLine=a1_200 +windowBackgroundWhiteGrayText2=n1_200 +windowBackgroundWhiteGrayText3=n1_200 +windowBackgroundWhiteGrayText4=n1_200 +windowBackgroundWhiteGrayText5=n1_200 +windowBackgroundWhiteGrayText6=n1_200 +windowBackgroundWhiteGrayText7=n1_200 +windowBackgroundWhiteGrayText8=n1_200 +windowBackgroundWhiteGrayText=n1_200 +windowBackgroundWhiteGreenText2=n1_50 +windowBackgroundWhiteGreenText=n1_50 +windowBackgroundWhiteHintText=n1_50 +windowBackgroundWhiteInputField=a1_200 +windowBackgroundWhiteInputFieldActivated=a1_100 +windowBackgroundWhiteLinkSelection=n1_600 +windowBackgroundWhiteLinkText=a3_100 +windowBackgroundWhiteRedText2=monetRedDark +windowBackgroundWhiteRedText3=monetRedDark +windowBackgroundWhiteRedText4=monetRedDark +windowBackgroundWhiteRedText5=monetRedDark +windowBackgroundWhiteRedText6=monetRedDark +windowBackgroundWhiteRedText=monetRedDark +windowBackgroundWhiteValueText=a1_100 diff --git a/TMessagesProj/src/main/assets/monet_light.attheme b/TMessagesProj/src/main/assets/monet_light.attheme new file mode 100644 index 000000000..8b168ab40 --- /dev/null +++ b/TMessagesProj/src/main/assets/monet_light.attheme @@ -0,0 +1,754 @@ +actionBarActionModeDefault=n1_50 +actionBarActionModeDefaultIcon=a1_600 +actionBarActionModeDefaultSelector=n1_50 +actionBarActionModeDefaultSubtitle=a1_1000 +actionBarActionModeDefaultTop=a1_600 +actionBarBrowser=n1_50 +actionBarDefault=n1_50 +actionBarDefaultArchived=n1_50 +actionBarDefaultArchivedIcon=a1_600 +actionBarDefaultArchivedSearch=a2_200 +actionBarDefaultArchivedSelector=n2_800 +actionBarDefaultArchivedTitle=a1_600 +actionBarDefaultIcon=a1_600 +actionBarDefaultSearch=a1_1000 +actionBarDefaultSearchArchivedPlaceholder=a1_0 +actionBarDefaultSearchPlaceholder=a1_600 +actionBarDefaultSelector=n2_800 +actionBarDefaultSubmenuBackground=n1_50 +actionBarDefaultSubmenuItem=a1_1000 +actionBarDefaultSubmenuItemIcon=a1_600 +actionBarDefaultSubtitle=a1_1000 +actionBarDefaultTitle=a1_1000 +actionBarTabActiveText=a1_600 +actionBarTabLine=a1_600 +actionBarTabSelector=a1_700 +actionBarTabUnactiveText=a2_800 +actionBarWhiteSelector=n2_800 +Archived=a1_600 +avatar_actionBarIconBlue=a1_600 +avatar_actionBarSelectorBlue=a1_600 +avatar_actionBarSelectorCyan=a1_600 +avatar_actionBarSelectorGreen=a1_600 +avatar_actionBarSelectorOrange=a1_600 +avatar_actionBarSelectorPink=a1_600 +avatar_actionBarSelectorRed=a1_600 +avatar_actionBarSelectorViolet=a1_600 +avatar_backgroundActionBarBlue=n1_50 +avatar_backgroundActionBarCyan=n1_50 +avatar_backgroundActionBarGreen=n1_50 +avatar_backgroundActionBarOrange=n1_50 +avatar_backgroundActionBarPink=n1_50 +avatar_backgroundActionBarRed=n1_50 +avatar_backgroundActionBarViolet=n1_50 +avatar_backgroundArchived=a1_600 +avatar_backgroundArchivedHidden=a1_600 +avatar_backgroundBlue=a1_600 +avatar_backgroundCyan=a1_600 +avatar_backgroundGreen=a1_600 +avatar_backgroundGroupCreateSpanBlue=a1_600 +avatar_backgroundInProfileBlue=a1_600 +avatar_backgroundOrange=a1_600 +avatar_backgroundPink=a1_600 +avatar_backgroundRed=a1_600 +avatar_backgroundSaved=a1_600 +avatar_backgroundViolet=a1_600 +avatar_nameInMessageBlue=a1_400 +avatar_nameInMessageCyan=a1_400 +avatar_nameInMessageGreen=a1_400 +avatar_nameInMessageOrange=a1_400 +avatar_nameInMessagePink=a1_400 +avatar_nameInMessageRed=a1_400 +avatar_nameInMessageViolet=a1_400 +avatar_subtitleInProfileBlue=a1_1000 +avatar_subtitleInProfileCyan=a1_1000 +avatar_subtitleInProfileGreen=a1_1000 +avatar_subtitleInProfileOrange=a1_1000 +avatar_subtitleInProfilePink=a1_1000 +avatar_subtitleInProfileRed=a1_1000 +avatar_subtitleInProfileViolet=a1_1000 +avatar_text=n1_50 +calls_callReceivedGreenIcon=monetGreenCall +calls_callReceivedRedIcon=monetRedCall +changephoneinfo_image2=a1_600 +changephoneinfo_image=a1_600 +chats_actionBackground=a1_100 +chats_actionIcon=n1_1000 +chats_actionMessage=a1_800 +chats_actionPressedBackground=a1_200 +chats_actionUnreadBackground=a1_600 +chats_actionUnreadIcon=n1_50 +chats_actionUnreadPressedBackground=a1_200 +chats_archiveBackground=a1_600 +chats_archiveIcon=a3_200 +chats_archivePinBackground=a1_600 +chats_archiveText=a3_200 +chats_attachMessage=a1_1000 +chats_date=a1_600 +chats_draft=a1_600 +chats_lockIcon=a1_600 +chats_mentionIcon=n1_50 +chats_menuBackground=n1_50 +chats_menuCloud=n1_900 +chats_menuCloudBackgroundCats=n1_50 +chats_menuItemCheck=a3_200 +chats_menuItemIcon=a1_600 +chats_menuItemText=a1_1000 +chats_menuName=a1_600 +chats_menuPhone=a1_1000 +chats_menuPhoneCats=a1_600 +chats_menuTopBackgroundCats=n1_50 +chats_menuTopShadow=n1_50 +chats_message=a1_1000 +chats_messageArchived=a1_1000 +chats_message_threeLines=a1_1000 +chats_muteIcon=a1_600 +chats_name=a1_600 +chats_nameArchived=a1_600 +chats_nameIcon=n1_50 +chats_nameMessage=a1_600 +chats_nameMessageArchived=a1_600 +chats_nameMessageArchived_threeLines=a1_600 +chats_nameMessage_threeLines=a1_600 +chats_onlineCircle=a1_600 +chats_pinnedIcon=a1_600 +chats_pinnedOverlay=n1_50 +chats_secretIcon=a1_600 +chats_secretName=a1_600 +chats_sendReadCheck=a1_600 +chats_sentCheck=a1_600 +chats_sentClock=a1_600 +chats_sentError=monetRedLight +chats_sentErrorIcon=monetRedLight +chats_sentReadCheck=a1_600 +chats_tabletSelectedOverlay=n1_100 +chats_tabUnreadActiveBackground=a1_600 +chats_tabUnreadUnactiveBackground=a2_800 +chats_unreadCounter=a1_600 +chats_unreadCounterMuted=a2_400 +chats_unreadCounterText=n1_50 +chats_verifiedBackground=a1_600 +chats_verifiedCheck=n1_50 +chat_addContact=a1_600 +chat_adminSelectedText=a1_1000 +chat_adminText=a1_1000 +chat_attachActiveTab=a1_600 +chat_attachAudioBackground=a1_600 +chat_attachAudioIcon=n1_50 +chat_attachAudioText=a1_1000 +chat_attachCameraIcon=a1_600 +chat_attachCheckBoxBackground=a1_600 +chat_attachCheckBoxCheck=n1_50 +chat_attachContactBackground=a1_600 +chat_attachContactIcon=n1_50 +chat_attachContactText=a1_1000 +chat_attachEmptyImage=a1_600 +chat_attachFileBackground=a1_600 +chat_attachFileIcon=n1_50 +chat_attachFileText=a1_1000 +chat_attachGalleryBackground=a1_600 +chat_attachGalleryIcon=n1_50 +chat_attachGalleryText=a1_1000 +chat_attachHideBackground=a1_600 +chat_attachLocationBackground=a1_600 +chat_attachLocationIcon=n1_50 +chat_attachLocationText=a1_1000 +chat_attachMediaBanBackground=n1_50 +chat_attachMediaBanText=a1_1000 +chat_attachMessage=a1_600 +chat_attachPermissionImage=a1_500 +chat_attachPermissionMark=monetRedLight +chat_attachPermissionText=a1_500 +chat_attachPhotoBackground=662406276 +chat_attachPollBackground=a1_600 +chat_attachPollIcon=n1_50 +chat_attachPollText=a1_1000 +chat_attachUnactive=a1_600 +chat_attachUnactiveTab=n1_300 +chat_BlurAlpha=1845499255 +chat_botButtonText=n1_50 +chat_botKeyboardButtonBackground=a1_600 +chat_botKeyboardButtonBackgroundPressed=n1_50 +chat_botKeyboardButtonText=n1_50 +chat_botProgress=a3_50 +chat_botSwitchToInlineText=n1_50 +chat_emojiBottomPanelIcon=a2_300 +chat_emojiPanelBackground=n1_50 +chat_emojiPanelBackspace=a1_600 +chat_emojiPanelBadgeBackground=n1_50 +chat_emojiPanelBadgeText=n1_900 +chat_emojiPanelEmptyText=a1_600 +chat_emojiPanelIcon=a2_300 +chat_emojiPanelIconSelected=a1_600 +chat_emojiPanelIconSelector=a1_600 +chat_emojiPanelMasksIcon=a1_600 +chat_emojiPanelMasksIconSelected=a1_400 +chat_emojiPanelNewTrending=a1_600 +chat_emojiPanelSelectorLine=a1_600 +chat_emojiPanelShadowLine=n1_50 +chat_emojiPanelStickerPackSelector=n2_800 +chat_emojiPanelStickerPackSelectorLine=a1_600 +chat_emojiPanelStickerSetName=a2_500 +chat_emojiPanelStickerSetNameHighlight=a3_300 +chat_emojiPanelStickerSetNameIcon=a1_600 +chat_emojiPanelTrendingDescription=a1_600 +chat_emojiPanelTrendingTitle=a1_600 +chat_emojiSearchBackground=a1_100 +chat_emojiSearchIcon=a1_600 +chat_fieldOverlayText=a1_600 +chat_gifSaveHintBackground=a1_500 +chat_gifSaveHintText=n1_50 +chat_goDownButton=a1_400 +chat_goDownButtonCounter=n1_50 +chat_goDownButtonCounterBackground=a1_400 +chat_goDownButtonIcon=n1_50 +chat_goDownButtonShadow=a1_600 +chat_inAudioCacheSeekbar=a1_600 +chat_inAudioDurationSelectedText=a1_1000 +chat_inAudioDurationText=a1_600 +chat_inAudioPerfomerSelectedText=a1_1000 +chat_inAudioPerfomerText=a1_1000 +chat_inAudioProgress=a1_600 +chat_inAudioSeekbar=a2_300 +chat_inAudioSeekbarFill=a1_600 +chat_inAudioSeekbarSelected=a1_600 +chat_inAudioSelectedProgress=n1_300 +chat_inAudioTitleText=a1_1000 +chat_inBubble=a2_50 +chat_inBubbleSelected=a2_50 +chat_inBubbleShadow=a1_300 +chat_inContactBackground=a1_600 +chat_inContactIcon=a1_600 +chat_inContactNameText=a1_600 +chat_inContactPhoneSelectedText=n1_50 +chat_inContactPhoneText=a1_1000 +chat_inDownCall=a1_600 +chat_inFileBackground=a1_200 +chat_inFileBackgroundSelected=a1_200 +chat_inFileIcon=a1_600 +chat_inFileInfoSelectedText=a1_1000 +chat_inFileInfoText=a1_1000 +chat_inFileNameText=a1_600 +chat_inFileProgress=a1_600 +chat_inFileProgressSelected=a1_600 +chat_inFileSelected=a1_600 +chat_inFileSelectedIcon=a1_600 +chat_inForwardedNameText=a1_1000 +chat_inInstant=a1_600 +chat_inInstantSelected=a1_600 +chat_inlineResultIcon=a1_600 +chat_inLoader=a1_600 +chat_inLoaderPhoto=a1_600 +chat_inLoaderPhoto=a1_600 +chat_inLoaderPhotoIcon=n1_50 +chat_inLoaderPhotoIconSelected=n1_50 +chat_inLoaderPhotoSelected=a1_600 +chat_inLoaderSelected=a1_600 +chat_inLocationBackground=n1_50 +chat_inLocationIcon=a1_600 +chat_inMediaIcon=n1_50 +chat_inMediaIconSelected=n1_50 +chat_inMenu=a1_600 +chat_inMenuSelected=a1_600 +chat_inPollCorrectAnswer=a3_600 +chat_inPreviewInstantSelectedText=a1_1000 +chat_InPreviewInstantText=a1_1000 +chat_inPreviewInstantText=a1_1000 +chat_inPreviewLine=a1_600 +chat_inReactionButtonBackground=a1_600 +chat_inReactionButtonText=a1_1000 +chat_inReactionButtonTextSelected=n1_50 +chat_inReplyLine=a1_600 +chat_inReplyMediaMessageSelectedText=a1_1000 +chat_inReplyMediaMessageText=a1_1000 +chat_inReplyMessageText=a1_1000 +chat_inReplyNameText=a1_600 +chat_inSentClock=a1_1000 +chat_inSentClockSelected=a1_1000 +chat_inSiteNameText=a1_1000 +chat_inTextSelectionHighlight=1230789978 +chat_inTimeSelectedText=a1_1000 +chat_inTimeText=a1_1000 +chat_inUpCall=monetRedCall +chat_inVenueInfoSelectedText=a1_1000 +chat_inVenueInfoText=n1_50 +chat_inViaBotNameText=a1_600 +chat_inViews=a1_1000 +chat_inViewsSelected=a1_1000 +chat_inVoiceSeekbar=n1_300 +chat_inVoiceSeekbarFill=a1_600 +chat_inVoiceSeekbarSelected=n1_300 +chat_linkSelectBackground=n1_400 +chat_lockIcon=a1_600 +chat_mediaBroadcast=n1_50 +chat_mediaInfoText=n1_50 +chat_mediaLoaderPhoto=a1_600 +chat_mediaLoaderPhotoIcon=n1_50 +chat_mediaLoaderPhotoIconSelected=n1_50 +chat_mediaLoaderPhotoSelected=a1_600 +chat_mediaMenu=a1_600 +chat_mediaProgress=a1_600 +chat_mediaSentCheck=n1_50 +chat_mediaSentClock=n1_50 +chat_mediaTimeBackground=a1_600 +chat_mediaTimeText=n1_50 +chat_mediaViews=n1_50 +chat_messageLinkIn=a3_500 +chat_messageLinkOut=a3_200 +chat_messagePanelBackground=n1_50 +chat_messagePanelCancelInlineBot=a1_600 +chat_messagePanelCursor=a1_600 +chat_messagePanelHint=n1_300 +chat_messagePanelIcons=a1_600 +chat_messagePanelSend=a1_600 +chat_messagePanelShadow=n1_50 +chat_messagePanelText=a1_1000 +chat_messagePanelVideoFrame=a1_600 +chat_messagePanelVoiceBackground=a1_600 +chat_messagePanelVoiceDelete=a1_600 +chat_messagePanelVoiceDuration=n1_50 +chat_messagePanelVoicePressed=n1_50 +chat_messagePanelVoiceShadow=a2_600 +chat_messageTextIn=a1_1000 +chat_messageTextOut=n1_50 +chat_muteIcon=a1_600 +chat_onlineCircle=a1_800 +chat_outAudioCacheSeekbar=n1_50 +chat_outAudioDurationSelectedText=n1_50 +chat_outAudioDurationText=n1_50 +chat_outAudioPerfomerSelectedText=n1_50 +chat_outAudioPerfomerText=n1_50 +chat_outAudioProgress=a1_200 +chat_outAudioSeekbar=n1_300 +chat_outAudioSeekbarFill=a1_300 +chat_outAudioSeekbarSelected=n1_300 +chat_outAudioSelectedProgress=a1_200 +chat_outAudioTitleText=n1_50 +chat_outBroadcast=a1_600 +chat_outBubble=a1_600 +chat_outBubbleGradientSelectedOverlay=a1_600 +chat_outBubbleSelected=a1_600 +chat_outBubbleShadow=n2_800 +chat_outContactBackground=n1_50 +chat_outContactIcon=n1_50 +chat_outContactNameText=n1_50 +chat_outContactPhoneSelectedText=n1_50 +chat_outContactPhoneText=n1_50 +chat_outFileBackground=n1_50 +chat_outFileBackgroundSelected=a1_600 +chat_outFileIcon=n1_50 +chat_outFileInfoSelectedText=n1_50 +chat_outFileInfoText=n1_50 +chat_outFileNameText=n1_50 +chat_outFileProgress=n1_50 +chat_outFileProgressSelected=n1_50 +chat_outFileSelectedIcon=n1_50 +chat_outForwardedNameText=n1_50 +chat_outInstant=a1_10 +chat_outInstantSelected=a1_10 +chat_outLoader=n1_50 +chat_outLoaderPhoto=a1_600 +chat_outLoaderPhotoIcon=a1_600 +chat_outLoaderPhotoIconSelected=n1_50 +chat_outLoaderPhotoSelected=n1_50 +chat_outLoaderSelected=n1_50 +chat_outLocationBackground=n1_50 +chat_outLocationIcon=n1_50 +chat_outMediaIcon=a1_600 +chat_outMediaIconSelected=a1_600 +chat_outMenu=n1_50 +chat_outMenuSelected=n1_50 +chat_outPollCorrectAnswer=a3_600 +chat_outPreviewInstantSelectedText=a1_1000 +chat_outPreviewInstantText=n1_50 +chat_outPreviewInstantText=n1_50 +chat_outPreviewLine=n1_50 +chat_outReactionButtonBackground=a1_200 +chat_outReplyLine=n1_50 +chat_outReplyMediaMessageSelectedText=n1_50 +chat_outReplyMediaMessageText=n1_50 +chat_outReplyMessageText=n1_50 +chat_outReplyNameText=n1_50 +chat_outSentCheck=a2_200 +chat_outSentCheckRead=a2_200 +chat_outSentCheckReadSelected=a2_200 +chat_outSentCheckSelected=a2_200 +chat_outSentClock=a2_200 +chat_outSentClockSelected=a2_200 +chat_outSiteNameText=n1_50 +chat_outTextSelectionHighlight=n1_700 +chat_outTimeSelectedText=n1_50 +chat_outTimeText=n1_50 +chat_outUpCall=a1_300 +chat_outVenueInfoSelectedText=n1_50 +chat_outVenueInfoText=n1_50 +chat_outVenueNameText=n1_50 +chat_outViaBotNameText=n1_50 +chat_outViews=n1_50 +chat_outViewsSelected=n1_50 +chat_outVoiceSeekbar=n1_300 +chat_outVoiceSeekbarFill=n1_50 +chat_outVoiceSeekbarSelected=n1_300 +chat_previewDurationText=n1_50 +chat_previewGameText=n1_50 +chat_recordedVoiceBackground=a1_600 +chat_recordedVoiceDot=a1_600 +chat_recordedVoicePlayPause=a1_100 +chat_recordedVoicePlayPausePressed=a1_200 +chat_recordedVoiceProgress=n1_300 +chat_recordedVoiceProgressInner=n1_50 +chat_recordTime=a1_600 +chat_recordVoiceCancel=a1_600 +chat_replyPanelClose=a1_600 +chat_replyPanelIcons=a1_600 +chat_replyPanelLine=n1_50 +chat_replyPanelMessage=n1_50 +chat_replyPanelName=a1_1000 +chat_reportSpam=a3_600 +chat_searchPanelIcons=a1_600 +chat_searchPanelText=a1_1000 +chat_secretChatStatusText=a1_600 +chat_secretTimerBackground=n1_50 +chat_secretTimerText=a1_0 +chat_secretTimeText=a1_0 +chat_selectedBackground=n2_100 +chat_sentError=monetRedLight +chat_sentErrorIcon=monetRedLight +chat_serviceBackground=a1_600 +chat_serviceBackgroundSelected=a1_600 +chat_serviceIcon=n1_50 +chat_serviceLink=n1_50 +chat_serviceText=n1_50 +chat_status=a1_600 +chat_stickerNameText=n1_50 +chat_stickerReplyLine=n1_50 +chat_stickerReplyMessageText=n1_50 +chat_stickerReplyNameText=n1_50 +chat_stickersHintPanel=n1_50 +chat_stickerViaBotNameText=a1_0 +chat_textSelectBackground=a1_200 +chat_TextSelectionCursor=a3_500 +chat_topPanelBackground=n1_50 +chat_topPanelClose=a1_600 +chat_topPanelLine=a1_600 +chat_topPanelMessage=a1_1000 +chat_topPanelTitle=a1_600 +chat_unreadMessagesStartArrowIcon=a1_600 +chat_unreadMessagesStartBackground=n1_50 +chat_unreadMessagesStartText=a1_1000 +chat_wallpaper=n1_50 +checkbox=a1_600 +checkboxCheck=a1_200 +checkboxDisabled=a2_200 +checkboxSquareBackground=a1_600 +checkboxSquareCheck=n1_50 +checkboxSquareDisabled=a1_600 +checkboxSquareUnchecked=n2_500 +contacts_inviteBackground=n2_800 +contacts_inviteText=n1_50 +contextProgressInner1=a1_1000 +contextProgressInner2=n1_100 +contextProgressInner3=n1_600 +contextProgressInner4=a1_1000 +contextProgressOuter1=n1_50 +contextProgressOuter2=a1_400 +contextProgressOuter3=a1_200 +contextProgressOuter4=n1_50 +dialogBackground=n1_50 +dialogBackgroundGray=n1_50 +dialogBadgeBackground=a1_600 +dialogBadgeText=a1_600 +dialogButton=a1_600 +dialogButtonSelector=a1_600 +dialogCameraIcon=a1_600 +dialogCheckboxSquareBackground=a1_600 +dialogCheckboxSquareCheck=n1_50 +dialogCheckboxSquareDisabled=a1_700 +dialogCheckboxSquareUnchecked=a1_600 +dialogFloatingButton=a1_600 +dialogFloatingButtonPressed=a2_600 +dialogFloatingIcon=n1_50 +dialogGrayLine=n1_50 +dialogIcon=a1_600 +dialogInputField=n1_50 +dialogInputFieldActivated=a1_600 +dialogLineProgress=a1_600 +dialogLineProgressBackground=a1_200 +dialogLinkSelection=a1_600 +dialogProgressCircle=a1_600 +dialogRadioBackground=a1_600 +dialogRadioBackgroundChecked=a1_600 +dialogRadioButton=n2_500 +dialogRedIcon=monetRedLight +dialogRoundCheckBox=a1_600 +dialogRoundCheckBoxCheck=n1_50 +dialogScrollGlow=n1_100 +dialogSearchBackground=n1_50 +dialogSearchHint=a1_600 +dialogSearchIcon=a1_600 +dialogSearchText=n1_900 +dialogShadowLine=n1_50 +dialogTextBlack=a1_1000 +dialogTextBlue2=a1_600 +dialogTextBlue3=a1_600 +dialogTextBlue4=a1_600 +dialogTextBlue=a1_1000 +dialogTextGray2=a1_600 +dialogTextGray3=a1_600 +dialogTextGray4=a1_600 +dialogTextGray=a1_600 +dialogTextHint=n1_300 +dialogTextLink=a1_600 +dialogTextRed2=monetRedLight +dialogTextRed=monetRedLight +dialogTopBackground=n1_50 +dialog_inlineProgress=a1_600 +dialog_inlineProgressBackground=n1_50 +dialog_liveLocationProgress=a1_600 +divider=n1_50 +emptyListPlaceholder=n2_800 +fastScrollActive=a1_200 +fastScrollInactive=a1_600 +fastScrollText=n1_800 +featuredStickers_addButton=a1_600 +featuredStickers_addButtonPressed=a1_600 +featuredStickers_addedIcon=a1_600 +featuredStickers_buttonProgress=a1_600 +featuredStickers_buttonText=n1_50 +featuredStickers_delButton=monetRedLight +featuredStickers_delButtonPressed=monetRedLight +featuredStickers_unread=a1_600 +files_folderIcon=a1_0 +files_folderIconBackground=a1_600 +files_iconText=a1_1000 +graySection=n1_50 +groupcreate_checkboxCheck=a1_600 +groupcreate_cursor=a1_600 +groupcreate_hintText=a1_700 +groupcreate_offlineText=n1_50 +groupcreate_onlineText=n1_50 +groupcreate_sectionShadow=n1_0 +groupcreate_sectionText=n1_50 +groupcreate_spanBackground=a2_200 +groupcreate_spanDelete=a1_700 +groupcreate_spanText=a1_0 +inappPlayerBackground=n1_50 +inappPlayerClose=a1_1000 +inappPlayerPerformer=a1_600 +inappPlayerPlayPause=a1_600 +inappPlayerTitle=a1_1000 +key_chats_menuTopShadow=n1_50 +key_chat_messagePanelVoiceLock=n1_50 +key_chat_messagePanelVoiceLockBackground=a1_600 +key_chat_messagePanelVoiceLockShadow=a2_600 +key_graySectionText=a1_600 +key_player_progressCachedBackground=a2_300 +key_sheet_other=a1_600 +key_sheet_scrollUp=a1_600 +kvoipgroup_overlayAlertMutedByAdmin2=a3_100 +listSelector=n2_800 +listSelectorSDK21=a1_100 +location_liveLocationProgress=a1_600 +location_placeLocationBackground=n1_50 +location_sendLiveLocationBackground=a1_600 +location_sendLiveLocationIcon=a1_0 +location_sendLiveLocationText=a1_600 +location_sendLocationBackground=a1_600 +location_sendLocationIcon=a1_0 +location_sendLocationText=a1_600 +login_progressInner=a1_100 +login_progressOuter=a1_700 +musicPicker_buttonBackground=a1_600 +musicPicker_buttonIcon=a1_50 +musicPicker_checkbox=a1_600 +musicPicker_checkboxCheck=n1_900 +passport_authorizeBackground=n1_50 +passport_authorizeBackgroundSelected=n1_50 +passport_authorizeText=n1_900 +picker_badge=n1_50 +picker_badgeText=n1_900 +picker_disabledButton=a1_600 +picker_enabledButton=a1_600 +player_actionBar=n1_50 +player_actionBarItems=a1_1000 +player_actionBarSelector=a1_600 +player_actionBarSubtitle=a1_600 +player_actionBarTitle=a1_1000 +player_actionBarTop=a1_600 +player_background=n1_50 +player_button=a1_600 +player_buttonActive=a1_600 +player_placeholder=a1_600 +player_placeholderBackground=n1_50 +player_progress=a1_600 +player_progressBackground=a2_300 +player_seekBarBackground=n1_50 +player_time=a1_600 +profile_actionBackground=a1_600 +profile_actionIcon=n1_50 +profile_actionPressedBackground=a1_200 +profile_adminIcon=a1_600 +profile_creatorIcon=a1_600 +profile_status=a1_1000 +profile_tabSelectedLine=a1_700 +profile_tabSelectedText=a1_700 +profile_tabSelector=a1_600 +profile_tabText=n1_500 +profile_title=a1_1000 +profile_verifiedBackground=a1_600 +profile_verifiedCheck=a1_0 +progressCircle=a1_600 +radioBackground=a1_600 +radioBackgroundChecked=a1_600 +returnToCallBackground=n1_50 +returnToCallText=a1_1000 +sessions_devicesImage=a1_100 +sharedMedia_actionMode=a3_600 +sharedMedia_linkPlaceholder=a1_600 +sharedMedia_linkPlaceholderText=n1_50 +sharedMedia_photoPlaceholder=a1_600 +sharedMedia_startStopLoadIcon=a1_600 +statisticChartActiveLine=n1_50 +statisticChartActivePickerChart=a1_600 +statisticChartBackZoomColor=a1_600 +statisticChartCheckboxInactive=n1_50 +statisticChartChevronColor=a1_600 +statisticChartHighlightColor=a1_600 +statisticChartHintLine=a1_600 +statisticChartInactivePickerChart=662406276 +statisticChartLine_blue=a1_300 +statisticChartLine_golden=a1_500 +statisticChartLine_green=a1_700 +statisticChartLine_indigo=a2_300 +statisticChartLine_lightblue=a3_300 +statisticChartLine_lightgreen=a3_500 +statisticChartLine_orange=a3_700 +statisticChartLine_red=a2_500 +statisticChartRipple=a1_300 +statisticChartSignature=a1_600 +statisticChartSignatureAlpha=a1_600 +stickers_menu=a1_600 +stickers_menuSelector=n2_200 +switch2Track=n2_500 +switch2TrackChecked=a1_700 +switchThumb=a1_600 +switchThumbChecked=a1_600 +switchTrack=n2_500 +switchTrackBlue=a1_600 +switchTrackBlueChecked=a1_600 +switchTrackBlueSelector=a1_600 +switchTrackBlueSelectorChecked=a1_600 +switchTrackBlueThumb=n1_50 +switchTrackBlueThumbChecked=n1_50 +switchTrackChecked=a1_700 +undo_background=a1_600 +undo_cancelColor=a1_200 +undo_cancelInfo=n1_50 +undo_infoColor=n1_50 +voipgroup_actionBar=n1_900 +voipgroup_actionBarItems=n1_0 +voipgroup_actionBarItemsSelector=n1_700 +voipgroup_actionBarSubtitle=n1_0 +voipgroup_actionBarUnscrolled=n1_900 +voipgroup_blueText=a3_200 +voipgroup_checkMenu=a1_200 +voipgroup_connectingProgress=a2_100 +voipgroup_dialogBackground=n1_900 +voipgroup_disabledButton=n2_800 +voipgroup_disabledButtonActive=n2_800 +voipgroup_disabledButtonActiveScrolled=n2_800 +voipgroup_emptyView=n1_900 +voipgroup_inviteMembersBackground=n1_900 +voipgroup_lastSeenText=n1_200 +voipgroup_lastSeenTextUnscrolled=n1_200 +voipgroup_leaveButton=a3_300 +voipgroup_leaveButtonScrolled=a3_200 +voipgroup_leaveCallMenu=a1_100 +voipgroup_listeningText=a2_300 +voipgroup_listSelector=n1_700 +voipgroup_listViewBackground=n2_800 +voipgroup_listViewBackgroundUnscrolled=n2_800 +voipgroup_muteButton2=a2_300 +voipgroup_muteButton3=a1_300 +voipgroup_muteButton=a1_500 +voipgroup_mutedByAdminGradient2=a3_200 +voipgroup_mutedByAdminGradient3=a3_300 +voipgroup_mutedByAdminGradient=a3_200 +voipgroup_mutedByAdminIcon=a3_400 +voipgroup_mutedByAdminMuteButton=a3_300 +voipgroup_mutedByAdminMuteButtonDisabled=a3_200 +voipgroup_mutedIcon=a2_400 +voipgroup_mutedIconUnscrolled=a2_400 +voipgroup_nameText=n1_0 +voipgroup_overlayAlertGradientMuted2=a2_200 +voipgroup_overlayAlertGradientMuted=a2_400 +voipgroup_overlayAlertGradientUnmuted2=a1_200 +voipgroup_overlayAlertGradientUnmuted=a1_400 +voipgroup_overlayAlertMutedByAdmin=a3_300 +voipgroup_overlayBlue1=a2_400 +voipgroup_overlayBlue2=a2_200 +voipgroup_overlayGreen1=a1_400 +voipgroup_overlayGreen2=a1_200 +voipgroup_scrollUp=a1_400 +voipgroup_searchBackground=n2_700 +voipgroup_searchPlaceholder=n2_200 +voipgroup_searchText=n1_0 +voipgroup_soundButton2=a1_400 +voipgroup_soundButton=a3_400 +voipgroup_soundButtonActive2=a1_400 +voipgroup_soundButtonActive2Scrolled=a1_400 +voipgroup_soundButtonActive=a3_400 +voipgroup_soundButtonActiveScrolled=a3_400 +voipgroup_speakingText=a1_100 +voipgroup_topPanelBlue1=n2_50 +voipgroup_topPanelBlue2=n2_200 +voipgroup_topPanelGray=n2_50 +voipgroup_topPanelGreen1=a1_300 +voipgroup_topPanelGreen2=a1_500 +voipgroup_unmuteButton2=a2_500 +voipgroup_unmuteButton=a2_600 +voipgroup_windowBackgroundWhiteInputField=n1_0 +voipgroup_windowBackgroundWhiteInputFieldActivated=n1_0 +wallpaperFileOffset=n1_50 +WhiteBlueIcon=a1_600 +windowBackgroundChecked=n1_50 +windowBackgroundCheckText=a1_600 +windowBackgroundGray=n1_50 +windowBackgroundGrayShadow=n1_50 +windowBackgroundUnchecked=n1_50 +windowBackgroundWhite=n1_50 +windowBackgroundWhiteBlackText=a1_1000 +windowBackgroundWhiteBlueButton=a1_600 +windowBackgroundWhiteBlueHeader=a1_600 +windowBackgroundWhiteBlueIcon=a1_600 +windowBackgroundWhiteBlueText2=a1_700 +windowBackgroundWhiteBlueText3=a1_700 +windowBackgroundWhiteBlueText4=a1_700 +windowBackgroundWhiteBlueText5=a1_700 +windowBackgroundWhiteBlueText6=a1_700 +windowBackgroundWhiteBlueText7=a1_700 +windowBackgroundWhiteBlueText=a1_600 +windowBackgroundWhiteGrayIcon=a1_600 +windowBackgroundWhiteGrayLine=a1_600 +windowBackgroundWhiteGrayText2=n1_600 +windowBackgroundWhiteGrayText3=n1_600 +windowBackgroundWhiteGrayText4=n1_600 +windowBackgroundWhiteGrayText5=n1_600 +windowBackgroundWhiteGrayText6=n1_600 +windowBackgroundWhiteGrayText7=n1_600 +windowBackgroundWhiteGrayText8=n1_600 +windowBackgroundWhiteGrayText=n1_600 +windowBackgroundWhiteGreenText2=a1_1000 +windowBackgroundWhiteGreenText=a1_1000 +windowBackgroundWhiteHintText=a1_1000 +windowBackgroundWhiteInputField=a1_300 +windowBackgroundWhiteInputFieldActivated=a1_600 +windowBackgroundWhiteLinkSelection=n1_200 +windowBackgroundWhiteLinkText=a3_500 +windowBackgroundWhiteRedText2=monetRedLight +windowBackgroundWhiteRedText3=monetRedLight +windowBackgroundWhiteRedText4=monetRedLight +windowBackgroundWhiteRedText5=monetRedLight +windowBackgroundWhiteRedText6=monetRedLight +windowBackgroundWhiteRedText=monetRedLight +windowBackgroundWhiteValueText=a1_600 diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java index 4e19ee7ab..2ae902682 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ActionBar/Theme.java @@ -66,12 +66,8 @@ import android.util.SparseIntArray; import android.util.StateSet; import android.view.View; -import androidx.annotation.UiThread; -import androidx.core.graphics.ColorUtils; - import androidx.annotation.NonNull; import androidx.annotation.Nullable; - import androidx.annotation.UiThread; import androidx.core.graphics.ColorUtils; @@ -95,6 +91,7 @@ import org.telegram.messenger.SharedConfig; import org.telegram.messenger.SvgHelper; import org.telegram.messenger.UserConfig; import org.telegram.messenger.Utilities; +import org.telegram.messenger.support.SparseLongArray; import org.telegram.messenger.time.SunDate; import org.telegram.tgnet.ConnectionsManager; import org.telegram.tgnet.SerializedData; @@ -120,7 +117,6 @@ import org.telegram.ui.Components.StatusDrawable; import org.telegram.ui.Components.ThemeEditorView; import org.telegram.ui.Components.TypingDotsDrawable; import org.telegram.ui.RoundVideoProgressShadow; -import org.telegram.messenger.support.SparseLongArray; import java.io.File; import java.io.FileInputStream; @@ -142,6 +138,7 @@ import java.util.Set; import java.util.concurrent.CountDownLatch; import tw.nekomimi.nekogram.NekoConfig; +import tw.nekomimi.nekogram.helpers.MonetHelper; public class Theme { @@ -2246,13 +2243,17 @@ public class Theme { return defaultAccentCount != 0; } + public boolean isMonet() { + return "Monet Dark".equals(name) || "Monet Light".equals(name) || "Monet AMOLED".equals(name); + } + public boolean isDark() { if (isDark != UNKNOWN) { return isDark == DARK; } - if ("Dark Blue".equals(name) || "Night".equals(name)) { + if ("Dark Blue".equals(name) || "Night".equals(name) || "AMOLED".equals(name) || "Monet Dark".equals(name) || "Monet AMOLED".equals(name)) { isDark = DARK; - } else if ("Blue".equals(name) || "Arctic Blue".equals(name) || "Day".equals(name)) { + } else if ("Blue".equals(name) || "Arctic Blue".equals(name) || "Day".equals(name) || "Monet Light".equals(name)) { isDark = LIGHT; } if (isDark == UNKNOWN && pathToFile != null) { @@ -5227,6 +5228,61 @@ public class Theme { themes.add(themeInfo); themesDict.put("Night", themeInfo); + themeInfo = new ThemeInfo(); + themeInfo.name = "AMOLED"; + themeInfo.assetName = "amoled.attheme"; + themeInfo.previewBackgroundColor = 0xff000000; + themeInfo.previewInColor = 0xff000000; + themeInfo.previewOutColor = 0xff75A2E6; + themeInfo.sortIndex = 5; + themeInfo.setAccentColorOptions( + new int[] { 0xFF6ABE3F, 0xFF8D78E3, 0xFFDE5E7E, 0xFF5977E8, 0xFFDBC11A, 0xff3e88f7, 0xff4ab5d3, 0xff4ab841, 0xffd95576, 0xffe27d2b, 0xff936cda, 0xffd04336, 0xffe8ae1c, 0xff7988a3 }, + new int[] { 0xFF8A5294, 0xFFB46C1B, 0xFFAF4F6F, 0xFF266E8D, 0xFF744EB7, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, + new int[] { 0xFF6855BB, 0xFFA53B4A, 0xFF62499C, 0xFF2F919D, 0xFF298B95, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, + new int[] { 0xFF16131c, 0xFF1e1118, 0xFF0f0b10, 0xFF090c0c, 0xFF071519, 0xff0d0e17, 0xff111b1c, 0xff0c110c, 0xff0e0b0d, 0xff1d160f, 0xff09090a, 0xff1c1210, 0xff1d1b18, 0xff0e1012 }, + new int[] { 0xFF201827, 0xFF100f13, 0xFF1b151a, 0xFF141f22, 0xFF0c0c0f, 0xff090a0c, 0xff0a0e0e, 0xff080908, 0xff1a1618, 0xff13100d, 0xff1e1a21, 0xff0f0d0c, 0xff0c0b08, 0xff070707 }, + new int[] { 0xFF0e0b13, 0xFF211623, 0xFF130e12, 0xFF0d0f11, 0xFF10191f, 0xff181c28, 0xff142121, 0xff121812, 0xff130e11, 0xff1a130f, 0xff0b0a0b, 0xff120d0b, 0xff15140f, 0xff101214 }, + new int[] { 0xFF1e192a, 0xFF111016, 0xFF21141a, 0xFF111a1b, 0xFF0a0d13, 0xff0e0f12, 0xff070c0b, 0xff0b0d0b, 0xff22121e, 0xff0f0c0c, 0xff110f17, 0xff070606, 0xff0c0a0a, 0xff09090b }, + new int[] { 9, 10, 11, 12, 13, 0, 1, 2, 3, 4, 5, 6, 7, 8 }, + new String[] { "YIxYGEALQVADAAAAA3QbEH0AowY", "9LW_RcoOSVACAAAAFTk3DTyXN-M", "O-wmAfBPSFADAAAA4zINVfD_bro", "F5oWoCs7QFACAAAAgf2bD_mg8Bw", "-Xc-np9y2VMCAAAARKr0yNNPYW0", "fqv01SQemVIBAAAApND8LDRUhRU", "F5oWoCs7QFACAAAAgf2bD_mg8Bw", "ptuUd96JSFACAAAATobI23sPpz0", "p-pXcflrmFIBAAAAvXYQk-mCwZU", "Nl8Pg2rBQVACAAAA25Lxtb8SDp0", "dhf9pceaQVACAAAAbzdVo4SCiZA", "9GcNVISdSVADAAAAUcw5BYjELW4", "9LW_RcoOSVACAAAAFTk3DTyXN-M", "dk_wwlghOFACAAAAfz9xrxi6euw" }, + new int[] { 45, 135, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, + new int[] { 34, 47, 52, 48, 54, 50, 37, 56, 48, 49, 40, 64, 38, 48 } + ); + themes.add(themeInfo); + themesDict.put("AMOLED", themeInfo); + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + themeInfo = new ThemeInfo(); + themeInfo.name = "Monet Light"; + themeInfo.assetName = "monet_light.attheme"; + themeInfo.previewBackgroundColor = MonetHelper.getColor("n1_50"); + themeInfo.previewInColor = MonetHelper.getColor("a2_50"); + themeInfo.previewOutColor = MonetHelper.getColor("a1_600"); + themeInfo.sortIndex = 6; + themes.add(themeInfo); + themesDict.put("Monet Light", themeInfo); + + themeInfo = new ThemeInfo(); + themeInfo.name = "Monet Dark"; + themeInfo.assetName = "monet_dark.attheme"; + themeInfo.previewBackgroundColor = MonetHelper.getColor("n1_900"); + themeInfo.previewInColor = MonetHelper.getColor("n2_800"); + themeInfo.previewOutColor = MonetHelper.getColor("a1_100"); + themeInfo.sortIndex = 7; + themes.add(themeInfo); + themesDict.put("Monet Dark", themeInfo); + + themeInfo = new ThemeInfo(); + themeInfo.name = "Monet AMOLED"; + themeInfo.assetName = "monet_dark.attheme"; + themeInfo.previewBackgroundColor = MonetHelper.getColor("n1_1000"); + themeInfo.previewInColor = MonetHelper.getColor("n2_800"); + themeInfo.previewOutColor = MonetHelper.getColor("a1_100"); + themeInfo.sortIndex = 8; + themes.add(themeInfo); + themesDict.put("Monet AMOLED", themeInfo); + } + String themesString = themeConfig.getString("themes2", null); int remoteVersion = themeConfig.getInt("remote_version", 0); @@ -6857,7 +6913,7 @@ public class Theme { } String[] wallpaperLink = new String[1]; if (themeInfo.assetName != null) { - currentColorsNoAccent = getThemeFileValues(null, themeInfo.assetName, null); + currentColorsNoAccent = getThemeFileValues(null, themeInfo.assetName, null, "Monet AMOLED".equals(themeInfo.name)); } else { currentColorsNoAccent = getThemeFileValues(new File(themeInfo.pathToFile), null, wallpaperLink); } @@ -8422,6 +8478,10 @@ public class Theme { } public static HashMap getThemeFileValues(File file, String assetName, String[] wallpaperLink) { + return getThemeFileValues(file, assetName, wallpaperLink, false); + } + + public static HashMap getThemeFileValues(File file, String assetName, String[] wallpaperLink, boolean monetAmoled) { FileInputStream stream = null; HashMap stringMap = new HashMap<>(500); try { @@ -8453,7 +8513,7 @@ public class Theme { } else { if ((idx = line.indexOf('=')) != -1) { String key = line.substring(0, idx); - String param = line.substring(idx + 1); + String param = line.substring(idx + 1).trim(); int value; if (param.length() > 0 && param.charAt(0) == '#') { try { @@ -8461,6 +8521,8 @@ public class Theme { } catch (Exception ignore) { value = Utilities.parseInt(param); } + } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && (param.startsWith("a") || param.startsWith("n") || param.startsWith("monet"))) { + value = MonetHelper.getColor(param, monetAmoled); } else { value = Utilities.parseInt(param); } diff --git a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java index 877d8d907..5fe6d74e9 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/LaunchActivity.java @@ -189,6 +189,7 @@ import tw.nekomimi.nekogram.settings.NekoSettingsActivity; import tw.nekomimi.nekogram.proxy.SubInfo; import tw.nekomimi.nekogram.proxy.SubManager; import tw.nekomimi.nekogram.utils.AlertUtil; +import tw.nekomimi.nekogram.utils.MonetHelper; import tw.nekomimi.nekogram.utils.UIUtil; public class LaunchActivity extends BasePermissionsActivity implements ActionBarLayout.ActionBarLayoutDelegate, NotificationCenter.NotificationCenterDelegate, DialogsActivity.DialogsActivityDelegate { @@ -963,6 +964,10 @@ public class LaunchActivity extends BasePermissionsActivity implements ActionBar SharedConfig.BackgroundActivityPrefs.setLastCheckedBackgroundActivity(System.currentTimeMillis()); } } + + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + MonetHelper.registerReceiver(this); + } } public void addOnUserLeaveHintListener(Runnable callback) { @@ -4793,6 +4798,9 @@ public class LaunchActivity extends BasePermissionsActivity implements ActionBar @Override protected void onDestroy() { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + MonetHelper.unregisterReceiver(this); + } if (PhotoViewer.getPipInstance() != null) { PhotoViewer.getPipInstance().destroyPhotoViewer(); } diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/helpers/MonetHelper.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/helpers/MonetHelper.java new file mode 100644 index 000000000..aef661c0c --- /dev/null +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/helpers/MonetHelper.java @@ -0,0 +1,144 @@ +package tw.nekomimi.nekogram.helpers; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.os.Build; +import android.os.PatternMatcher; + +import androidx.annotation.RequiresApi; + +import com.google.android.exoplayer2.util.Log; + +import org.telegram.messenger.ApplicationLoader; +import org.telegram.messenger.R; +import org.telegram.ui.ActionBar.Theme; + +import java.util.HashMap; + +@RequiresApi(api = Build.VERSION_CODES.S) +public class MonetHelper { + private static final HashMap ids = new HashMap<>(); + private static final String ACTION_OVERLAY_CHANGED = "android.intent.action.OVERLAY_CHANGED"; + private static final OverlayChangeReceiver overlayChangeReceiver = new OverlayChangeReceiver(); + + static { + ids.put("a1_0", android.R.color.system_accent1_0); + ids.put("a1_10", android.R.color.system_accent1_10); + ids.put("a1_50", android.R.color.system_accent1_50); + ids.put("a1_100", android.R.color.system_accent1_100); + ids.put("a1_200", android.R.color.system_accent1_200); + ids.put("a1_300", android.R.color.system_accent1_300); + ids.put("a1_400", android.R.color.system_accent1_400); + ids.put("a1_500", android.R.color.system_accent1_500); + ids.put("a1_600", android.R.color.system_accent1_600); + ids.put("a1_700", android.R.color.system_accent1_700); + ids.put("a1_800", android.R.color.system_accent1_800); + ids.put("a1_900", android.R.color.system_accent1_900); + ids.put("a1_1000", android.R.color.system_accent1_1000); + ids.put("a2_0", android.R.color.system_accent2_0); + ids.put("a2_10", android.R.color.system_accent2_10); + ids.put("a2_50", android.R.color.system_accent2_50); + ids.put("a2_100", android.R.color.system_accent2_100); + ids.put("a2_200", android.R.color.system_accent2_200); + ids.put("a2_300", android.R.color.system_accent2_300); + ids.put("a2_400", android.R.color.system_accent2_400); + ids.put("a2_500", android.R.color.system_accent2_500); + ids.put("a2_600", android.R.color.system_accent2_600); + ids.put("a2_700", android.R.color.system_accent2_700); + ids.put("a2_800", android.R.color.system_accent2_800); + ids.put("a2_900", android.R.color.system_accent2_900); + ids.put("a2_1000", android.R.color.system_accent2_1000); + ids.put("a3_0", android.R.color.system_accent3_0); + ids.put("a3_10", android.R.color.system_accent3_10); + ids.put("a3_50", android.R.color.system_accent3_50); + ids.put("a3_100", android.R.color.system_accent3_100); + ids.put("a3_200", android.R.color.system_accent3_200); + ids.put("a3_300", android.R.color.system_accent3_300); + ids.put("a3_400", android.R.color.system_accent3_400); + ids.put("a3_500", android.R.color.system_accent3_500); + ids.put("a3_600", android.R.color.system_accent3_600); + ids.put("a3_700", android.R.color.system_accent3_700); + ids.put("a3_800", android.R.color.system_accent3_800); + ids.put("a3_900", android.R.color.system_accent3_900); + ids.put("a3_1000", android.R.color.system_accent3_1000); + ids.put("n1_0", android.R.color.system_neutral1_0); + ids.put("n1_10", android.R.color.system_neutral1_10); + ids.put("n1_50", android.R.color.system_neutral1_50); + ids.put("n1_100", android.R.color.system_neutral1_100); + ids.put("n1_200", android.R.color.system_neutral1_200); + ids.put("n1_300", android.R.color.system_neutral1_300); + ids.put("n1_400", android.R.color.system_neutral1_400); + ids.put("n1_500", android.R.color.system_neutral1_500); + ids.put("n1_600", android.R.color.system_neutral1_600); + ids.put("n1_700", android.R.color.system_neutral1_700); + ids.put("n1_800", android.R.color.system_neutral1_800); + ids.put("n1_900", android.R.color.system_neutral1_900); + ids.put("n1_1000", android.R.color.system_neutral1_1000); + ids.put("n2_0", android.R.color.system_neutral2_0); + ids.put("n2_10", android.R.color.system_neutral2_10); + ids.put("n2_50", android.R.color.system_neutral2_50); + ids.put("n2_100", android.R.color.system_neutral2_100); + ids.put("n2_200", android.R.color.system_neutral2_200); + ids.put("n2_300", android.R.color.system_neutral2_300); + ids.put("n2_400", android.R.color.system_neutral2_400); + ids.put("n2_500", android.R.color.system_neutral2_500); + ids.put("n2_600", android.R.color.system_neutral2_600); + ids.put("n2_700", android.R.color.system_neutral2_700); + ids.put("n2_800", android.R.color.system_neutral2_800); + ids.put("n2_900", android.R.color.system_neutral2_900); + ids.put("n2_1000", android.R.color.system_neutral2_1000); + ids.put("monetRedDark", R.color.monetRedDark); + ids.put("monetRedLight", R.color.monetRedLight); + ids.put("monetRedCall", R.color.monetRedCall); + ids.put("monetGreenCall", R.color.monetGreenCall); + } + + public static int getColor(String color) { + return getColor(color, false); + } + + public static int getColor(String color, boolean amoled) { + try { + //noinspection ConstantConditions + int id = ids.getOrDefault(amoled && "n1_900".equals(color) ? "n1_1000" : color, 0); + return ApplicationLoader.applicationContext.getColor(id); + } catch (Exception e) { + Log.e("Theme", "Error loading color " + color); + e.printStackTrace(); + return 0; + } + } + + private static class OverlayChangeReceiver extends BroadcastReceiver { + + public void register(Context context) { + IntentFilter packageFilter = new IntentFilter(ACTION_OVERLAY_CHANGED); + packageFilter.addDataScheme("package"); + packageFilter.addDataSchemeSpecificPart("android", PatternMatcher.PATTERN_LITERAL); + context.registerReceiver(this, packageFilter); + } + + public void unregister(Context context) { + context.unregisterReceiver(this); + } + + @Override + public void onReceive(Context context, Intent intent) { + if (ACTION_OVERLAY_CHANGED.equals(intent.getAction())) { + if (Theme.getActiveTheme().isMonet()) { + Theme.applyTheme(Theme.getActiveTheme()); + } + } + } + } + + public static void registerReceiver(Context context) { + overlayChangeReceiver.register(context); + } + + public static void unregisterReceiver(Context context) { + overlayChangeReceiver.unregister(context); + } +} diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/MonetHelper.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/MonetHelper.java new file mode 100644 index 000000000..5194f6fd2 --- /dev/null +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/utils/MonetHelper.java @@ -0,0 +1,137 @@ +package tw.nekomimi.nekogram.utils; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; +import android.content.IntentFilter; +import android.os.Build; +import android.os.PatternMatcher; + +import androidx.annotation.RequiresApi; + +import com.google.android.exoplayer2.util.Log; + +import org.telegram.messenger.ApplicationLoader; +import org.telegram.ui.ActionBar.Theme; + +import java.util.LinkedHashMap; + +@RequiresApi(api = Build.VERSION_CODES.S) +public class MonetHelper { + private static final LinkedHashMap ids = new LinkedHashMap<>(); + private static final String ACTION_OVERLAY_CHANGED = "android.intent.action.OVERLAY_CHANGED"; + private static final OverlayChangeReceiver overlayChangeReceiver = new OverlayChangeReceiver(); + + static { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { + ids.put("a1_0", android.R.color.system_accent1_0); + ids.put("a1_10", android.R.color.system_accent1_10); + ids.put("a1_50", android.R.color.system_accent1_50); + ids.put("a1_100", android.R.color.system_accent1_100); + ids.put("a1_200", android.R.color.system_accent1_200); + ids.put("a1_300", android.R.color.system_accent1_300); + ids.put("a1_400", android.R.color.system_accent1_400); + ids.put("a1_500", android.R.color.system_accent1_500); + ids.put("a1_600", android.R.color.system_accent1_600); + ids.put("a1_700", android.R.color.system_accent1_700); + ids.put("a1_800", android.R.color.system_accent1_800); + ids.put("a1_900", android.R.color.system_accent1_900); + ids.put("a1_1000", android.R.color.system_accent1_1000); + ids.put("a2_0", android.R.color.system_accent2_0); + ids.put("a2_10", android.R.color.system_accent2_10); + ids.put("a2_50", android.R.color.system_accent2_50); + ids.put("a2_100", android.R.color.system_accent2_100); + ids.put("a2_200", android.R.color.system_accent2_200); + ids.put("a2_300", android.R.color.system_accent2_300); + ids.put("a2_400", android.R.color.system_accent2_400); + ids.put("a2_500", android.R.color.system_accent2_500); + ids.put("a2_600", android.R.color.system_accent2_600); + ids.put("a2_700", android.R.color.system_accent2_700); + ids.put("a2_800", android.R.color.system_accent2_800); + ids.put("a2_900", android.R.color.system_accent2_900); + ids.put("a2_1000", android.R.color.system_accent2_1000); + ids.put("a3_0", android.R.color.system_accent3_0); + ids.put("a3_10", android.R.color.system_accent3_10); + ids.put("a3_50", android.R.color.system_accent3_50); + ids.put("a3_100", android.R.color.system_accent3_100); + ids.put("a3_200", android.R.color.system_accent3_200); + ids.put("a3_300", android.R.color.system_accent3_300); + ids.put("a3_400", android.R.color.system_accent3_400); + ids.put("a3_500", android.R.color.system_accent3_500); + ids.put("a3_600", android.R.color.system_accent3_600); + ids.put("a3_700", android.R.color.system_accent3_700); + ids.put("a3_800", android.R.color.system_accent3_800); + ids.put("a3_900", android.R.color.system_accent3_900); + ids.put("a3_1000", android.R.color.system_accent3_1000); + ids.put("n1_0", android.R.color.system_neutral1_0); + ids.put("n1_10", android.R.color.system_neutral1_10); + ids.put("n1_50", android.R.color.system_neutral1_50); + ids.put("n1_100", android.R.color.system_neutral1_100); + ids.put("n1_200", android.R.color.system_neutral1_200); + ids.put("n1_300", android.R.color.system_neutral1_300); + ids.put("n1_400", android.R.color.system_neutral1_400); + ids.put("n1_500", android.R.color.system_neutral1_500); + ids.put("n1_600", android.R.color.system_neutral1_600); + ids.put("n1_700", android.R.color.system_neutral1_700); + ids.put("n1_800", android.R.color.system_neutral1_800); + ids.put("n1_900", android.R.color.system_neutral1_900); + ids.put("n1_1000", android.R.color.system_neutral1_1000); + ids.put("n2_0", android.R.color.system_neutral2_0); + ids.put("n2_10", android.R.color.system_neutral2_10); + ids.put("n2_50", android.R.color.system_neutral2_50); + ids.put("n2_100", android.R.color.system_neutral2_100); + ids.put("n2_200", android.R.color.system_neutral2_200); + ids.put("n2_300", android.R.color.system_neutral2_300); + ids.put("n2_400", android.R.color.system_neutral2_400); + ids.put("n2_500", android.R.color.system_neutral2_500); + ids.put("n2_600", android.R.color.system_neutral2_600); + ids.put("n2_700", android.R.color.system_neutral2_700); + ids.put("n2_800", android.R.color.system_neutral2_800); + ids.put("n2_900", android.R.color.system_neutral2_900); + ids.put("n2_1000", android.R.color.system_neutral2_1000); + } + } + + public static int getColor(String color) { + try { + //noinspection ConstantConditions + int id = ids.getOrDefault(color, 0); + return ApplicationLoader.applicationContext.getColor(id); + } catch (Exception e) { + Log.e("Theme", "Error loading color " + color); + e.printStackTrace(); + return 0; + } + } + + private static class OverlayChangeReceiver extends BroadcastReceiver { + + public void register(Context context) { + IntentFilter packageFilter = new IntentFilter(ACTION_OVERLAY_CHANGED); + packageFilter.addDataScheme("package"); + packageFilter.addDataSchemeSpecificPart("android", PatternMatcher.PATTERN_LITERAL); + context.registerReceiver(this, packageFilter); + } + + public void unregister(Context context) { + context.unregisterReceiver(this); + } + + @Override + public void onReceive(Context context, Intent intent) { + if (ACTION_OVERLAY_CHANGED.equals(intent.getAction())) { + if (Theme.getActiveTheme().isMonet()) { + Theme.applyTheme(Theme.getActiveTheme()); + } + } + } + } + + public static void registerReceiver(Context context) { + overlayChangeReceiver.register(context); + } + + public static void unregisterReceiver(Context context) { + overlayChangeReceiver.unregister(context); + } +} diff --git a/TMessagesProj/src/main/res/values/colors.xml b/TMessagesProj/src/main/res/values/colors.xml index 99529bf3f..004e4f0f9 100755 --- a/TMessagesProj/src/main/res/values/colors.xml +++ b/TMessagesProj/src/main/res/values/colors.xml @@ -9,4 +9,9 @@ #8B8D8F #999999 #FFFFFFFF + + #B3261E + #F2B8B5 + #4CAF50 + #EF5350 \ No newline at end of file