Use some icons from lib_ui.
21
.gitignore
vendored
|
@ -1,24 +1,8 @@
|
||||||
/out/
|
/out/
|
||||||
/Debug/
|
Debug/
|
||||||
/Release/
|
Release/
|
||||||
/Deploy/
|
|
||||||
/ThirdParty/
|
/ThirdParty/
|
||||||
/Telegram/build/target
|
/Telegram/build/target
|
||||||
/Telegram/GeneratedFiles/
|
|
||||||
/Telegram/SourceFiles/art/grid.png
|
|
||||||
/Telegram/SourceFiles/art/grid_125x.png
|
|
||||||
/Telegram/SourceFiles/art/grid_150x.png
|
|
||||||
/Telegram/SourceFiles/art/grid_200x.png
|
|
||||||
/Telegram/SourceFiles/art/sprite_125x.png
|
|
||||||
/Telegram/SourceFiles/art/sprite_150x.png
|
|
||||||
/Telegram/Resources/art/grid.png
|
|
||||||
/Telegram/Resources/art/grid_125x.png
|
|
||||||
/Telegram/Resources/art/grid_150x.png
|
|
||||||
/Telegram/Resources/art/grid_200x.png
|
|
||||||
/Telegram/Resources/art/sprite_125x.png
|
|
||||||
/Telegram/Resources/art/sprite_150x.png
|
|
||||||
/Telegram/Debug/
|
|
||||||
/Telegram/Release/
|
|
||||||
/Telegram/tests/
|
/Telegram/tests/
|
||||||
/Telegram/gyp/tests/*.test
|
/Telegram/gyp/tests/*.test
|
||||||
/Telegram/out/
|
/Telegram/out/
|
||||||
|
@ -32,7 +16,6 @@
|
||||||
*.VC.db
|
*.VC.db
|
||||||
*.aps
|
*.aps
|
||||||
*.xcodeproj
|
*.xcodeproj
|
||||||
/Win32/
|
|
||||||
ipch/
|
ipch/
|
||||||
.vs/
|
.vs/
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 148 B |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 590 B |
Before Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 707 B |
Before Width: | Height: | Size: 825 B |
Before Width: | Height: | Size: 136 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 119 B |
Before Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 293 B |
Before Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 165 B |
Before Width: | Height: | Size: 86 B |
Before Width: | Height: | Size: 107 B |
Before Width: | Height: | Size: 108 B |
Before Width: | Height: | Size: 179 B |
Before Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 373 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 111 B |
Before Width: | Height: | Size: 117 B |
Before Width: | Height: | Size: 292 B |
Before Width: | Height: | Size: 539 B |
Before Width: | Height: | Size: 887 B |
Before Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 98 B |
Before Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 102 B |
Before Width: | Height: | Size: 106 B |
Before Width: | Height: | Size: 219 B |
Before Width: | Height: | Size: 423 B |
Before Width: | Height: | Size: 741 B |
Before Width: | Height: | Size: 78 B |
Before Width: | Height: | Size: 93 B |
Before Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 75 B |
Before Width: | Height: | Size: 90 B |
Before Width: | Height: | Size: 95 B |
Before Width: | Height: | Size: 141 B |
Before Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 269 B |
Before Width: | Height: | Size: 124 B |
Before Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 264 B |
Before Width: | Height: | Size: 103 B |
Before Width: | Height: | Size: 116 B |
Before Width: | Height: | Size: 130 B |
|
@ -10,8 +10,26 @@ using "ui/basic.style";
|
||||||
using "ui/widgets/widgets.style";
|
using "ui/widgets/widgets.style";
|
||||||
using "intro/intro.style";
|
using "intro/intro.style";
|
||||||
|
|
||||||
boxDuration: 200;
|
UserpicButton {
|
||||||
boxRadius: 3px;
|
size: size;
|
||||||
|
photoSize: pixels;
|
||||||
|
photoPosition: point;
|
||||||
|
changeButton: RoundButton;
|
||||||
|
changeIcon: icon;
|
||||||
|
changeIconPosition: point;
|
||||||
|
duration: int;
|
||||||
|
uploadHeight: pixels;
|
||||||
|
uploadBg: color;
|
||||||
|
uploadIcon: icon;
|
||||||
|
uploadIconPosition: point;
|
||||||
|
}
|
||||||
|
|
||||||
|
FeedUserpicButton {
|
||||||
|
size: size;
|
||||||
|
innerSize: pixels;
|
||||||
|
innerPosition: point;
|
||||||
|
innerPart: UserpicButton;
|
||||||
|
}
|
||||||
|
|
||||||
ServiceCheck {
|
ServiceCheck {
|
||||||
margin: margins;
|
margin: margins;
|
||||||
|
@ -26,6 +44,9 @@ ServiceCheck {
|
||||||
duration: int;
|
duration: int;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boxDuration: 200;
|
||||||
|
boxRadius: 3px;
|
||||||
|
|
||||||
boxButtonFont: font(boxFontSize semibold);
|
boxButtonFont: font(boxFontSize semibold);
|
||||||
defaultBoxButton: RoundButton(defaultLightButton) {
|
defaultBoxButton: RoundButton(defaultLightButton) {
|
||||||
width: -24px;
|
width: -24px;
|
||||||
|
@ -161,6 +182,28 @@ boxPhotoCompressedSkip: 20px;
|
||||||
boxPhotoCaptionSkip: 8px;
|
boxPhotoCaptionSkip: 8px;
|
||||||
boxPhotoTextFg: windowSubTextFg;
|
boxPhotoTextFg: windowSubTextFg;
|
||||||
|
|
||||||
|
defaultChangeUserpicIcon: icon {{ "new_chat_photo", activeButtonFg }};
|
||||||
|
defaultUploadUserpicIcon: icon {{ "upload_chat_photo", msgDateImgFg }};
|
||||||
|
defaultUserpicButton: UserpicButton {
|
||||||
|
size: size(76px, 76px);
|
||||||
|
photoSize: 76px;
|
||||||
|
photoPosition: point(-1px, -1px);
|
||||||
|
changeButton: defaultActiveButton;
|
||||||
|
changeIcon: defaultChangeUserpicIcon;
|
||||||
|
changeIconPosition: point(23px, 25px);
|
||||||
|
duration: 500;
|
||||||
|
uploadHeight: 24px;
|
||||||
|
uploadBg: msgDateImgBgOver;
|
||||||
|
uploadIcon: defaultUploadUserpicIcon;
|
||||||
|
uploadIconPosition: point(-1px, 1px);
|
||||||
|
}
|
||||||
|
defaultFeedUserpicButton: FeedUserpicButton {
|
||||||
|
size: size(76px, 76px);
|
||||||
|
innerSize: 76px;
|
||||||
|
innerPosition: point(-1px, -1px);
|
||||||
|
innerPart: defaultUserpicButton;
|
||||||
|
}
|
||||||
|
|
||||||
boxLoadingAnimation: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
|
boxLoadingAnimation: InfiniteRadialAnimation(defaultInfiniteRadialAnimation) {
|
||||||
color: windowSubTextFg;
|
color: windowSubTextFg;
|
||||||
thickness: 2px;
|
thickness: 2px;
|
||||||
|
@ -224,24 +267,6 @@ contactUserIcon: icon {{ "settings_name", menuIconFg }};
|
||||||
contactPhoneIcon: icon {{ "settings_phone_number", menuIconFg }};
|
contactPhoneIcon: icon {{ "settings_phone_number", menuIconFg }};
|
||||||
contactIconPosition: point(-5px, 23px);
|
contactIconPosition: point(-5px, 23px);
|
||||||
|
|
||||||
contactsAddIconAbove: icon {{ "contacts_add", activeButtonFg, point(18px, 18px) }};
|
|
||||||
contactsAdd: TwoIconButton {
|
|
||||||
width: 52px;
|
|
||||||
height: 52px;
|
|
||||||
|
|
||||||
iconBelow: contactsAddIconBelow;
|
|
||||||
iconBelowOver: contactsAddIconBelowOver;
|
|
||||||
iconAbove: contactsAddIconAbove;
|
|
||||||
iconAboveOver: contactsAddIconAbove;
|
|
||||||
|
|
||||||
rippleAreaPosition: point(5px, 5px);
|
|
||||||
rippleAreaSize: 42px;
|
|
||||||
ripple: RippleAnimation(defaultRippleAnimation) {
|
|
||||||
color: activeButtonBgRipple;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
contactsAddPosition: point(14px, 8px);
|
|
||||||
|
|
||||||
contactPadding: margins(49px, 2px, 0px, 12px);
|
contactPadding: margins(49px, 2px, 0px, 12px);
|
||||||
contactSkip: 6px;
|
contactSkip: 6px;
|
||||||
contactPhoneSkip: 30px;
|
contactPhoneSkip: 30px;
|
||||||
|
|
|
@ -47,6 +47,14 @@ historyToDownPosition: point(12px, 10px);
|
||||||
historyToDownAbove: icon {{ "history_down_arrow", historyToDownFg, point(17px, 23px) }};
|
historyToDownAbove: icon {{ "history_down_arrow", historyToDownFg, point(17px, 23px) }};
|
||||||
historyToDownAboveOver: icon {{ "history_down_arrow", historyToDownFgOver, point(17px, 23px) }};
|
historyToDownAboveOver: icon {{ "history_down_arrow", historyToDownFgOver, point(17px, 23px) }};
|
||||||
historyToDownPaddingTop: 10px;
|
historyToDownPaddingTop: 10px;
|
||||||
|
historyToDownBelow: icon {
|
||||||
|
{ "history_down_shadow", historyToDownShadow },
|
||||||
|
{ "history_down_circle", historyToDownBg, point(4px, 4px) },
|
||||||
|
};
|
||||||
|
historyToDownBelowOver: icon {
|
||||||
|
{ "history_down_shadow", historyToDownShadow },
|
||||||
|
{ "history_down_circle", historyToDownBgOver, point(4px, 4px) },
|
||||||
|
};
|
||||||
historyToDown: TwoIconButton {
|
historyToDown: TwoIconButton {
|
||||||
width: 52px;
|
width: 52px;
|
||||||
height: 62px;
|
height: 62px;
|
||||||
|
|
|
@ -17,7 +17,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "info/info_controller.h"
|
#include "info/info_controller.h"
|
||||||
#include "info/info_memento.h"
|
#include "info/info_memento.h"
|
||||||
#include "lang/lang_keys.h"
|
#include "lang/lang_keys.h"
|
||||||
#include "styles/style_info.h"
|
|
||||||
#include "ui/widgets/labels.h"
|
#include "ui/widgets/labels.h"
|
||||||
#include "ui/effects/ripple_animation.h"
|
#include "ui/effects/ripple_animation.h"
|
||||||
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
|
#include "ui/text/text_utilities.h" // Ui::Text::ToUpper
|
||||||
|
@ -29,6 +28,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
#include "main/main_session.h"
|
#include "main/main_session.h"
|
||||||
#include "apiwrap.h"
|
#include "apiwrap.h"
|
||||||
|
#include "styles/style_boxes.h"
|
||||||
|
#include "styles/style_info.h"
|
||||||
|
|
||||||
namespace Info {
|
namespace Info {
|
||||||
namespace Profile {
|
namespace Profile {
|
||||||
|
|
|
@ -8,6 +8,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
using "ui/basic.style";
|
using "ui/basic.style";
|
||||||
using "ui/widgets/widgets.style";
|
using "ui/widgets/widgets.style";
|
||||||
using "history/history.style";
|
using "history/history.style";
|
||||||
|
using "boxes/boxes.style"; // UserpicButton
|
||||||
|
|
||||||
windowMinWidth: 380px;
|
windowMinWidth: 380px;
|
||||||
windowMinHeight: 480px;
|
windowMinHeight: 480px;
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 342fad864a30acc92f6cfc2cd5ad631c7133ee8f
|
Subproject commit 946c33ef251ea5a46340e72ae903487576baf9b4
|