2017-07-15 17:11:46 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// Non-theme app configuration. Layouts, fonts spacing etc.
|
|
|
|
//
|
|
|
|
// Font sizes are in pixels.
|
|
|
|
|
|
|
|
namespace conf
|
|
|
|
{
|
|
|
|
// Global settings.
|
2017-10-04 11:33:34 +03:00
|
|
|
static const int fontSize = 12;
|
|
|
|
static const int emojiSize = 14;
|
|
|
|
static const int headerFontSize = 21;
|
|
|
|
static const int typingNotificationFontSize = 11;
|
2017-07-15 17:11:46 +03:00
|
|
|
|
2017-07-30 13:59:28 +03:00
|
|
|
// Window geometry.
|
|
|
|
namespace window
|
|
|
|
{
|
|
|
|
static const int height = 600;
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int width = 1066;
|
2017-07-30 13:59:28 +03:00
|
|
|
|
|
|
|
static const int minHeight = 600;
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int minWidth = 950;
|
2017-07-30 13:59:28 +03:00
|
|
|
}
|
|
|
|
|
2017-07-15 17:11:46 +03:00
|
|
|
// Button settings.
|
|
|
|
namespace btn
|
|
|
|
{
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int fontSize = 20;
|
2017-07-15 17:11:46 +03:00
|
|
|
static const int cornerRadius = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
// RoomList specific.
|
|
|
|
namespace roomlist
|
|
|
|
{
|
|
|
|
namespace fonts
|
|
|
|
{
|
|
|
|
static const int heading = 13;
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int badge = 10;
|
|
|
|
static const int bubble = 20;
|
2017-08-20 13:47:22 +03:00
|
|
|
} // namespace fonts
|
|
|
|
} // namespace roomlist
|
2017-07-15 17:11:46 +03:00
|
|
|
|
|
|
|
namespace userInfoWidget
|
|
|
|
{
|
|
|
|
namespace fonts
|
|
|
|
{
|
|
|
|
static const int displayName = 16;
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int userid = 14;
|
2017-08-20 13:47:22 +03:00
|
|
|
} // namespace fonts
|
|
|
|
} // namespace userInfoWidget
|
2017-07-15 17:11:46 +03:00
|
|
|
|
|
|
|
namespace topRoomBar
|
|
|
|
{
|
|
|
|
namespace fonts
|
|
|
|
{
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int roomName = 15;
|
2017-07-15 17:11:46 +03:00
|
|
|
static const int roomDescription = 13;
|
2017-08-20 13:47:22 +03:00
|
|
|
} // namespace fonts
|
|
|
|
} // namespace topRoomBar
|
2017-07-15 17:11:46 +03:00
|
|
|
|
|
|
|
namespace timeline
|
|
|
|
{
|
2017-09-10 12:59:21 +03:00
|
|
|
static const int msgMargin = 11;
|
|
|
|
static const int avatarSize = 36;
|
|
|
|
static const int headerSpacing = 5;
|
2017-07-15 19:18:34 +03:00
|
|
|
static const int headerLeftMargin = 15;
|
2017-07-15 17:11:46 +03:00
|
|
|
|
|
|
|
namespace fonts
|
|
|
|
{
|
|
|
|
static const int timestamp = 9;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-08-20 13:47:22 +03:00
|
|
|
} // namespace conf
|