Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nheko
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
nheko
Commits
9e2789a1
Verified
Commit
9e2789a1
authored
2 years ago
by
Nicolas Werner
Browse files
Options
Downloads
Patches
Plain Diff
Remove a few unused variables
parent
656fcac9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2912
passed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Config.h
+4
-90
4 additions, 90 deletions
src/Config.h
with
4 additions
and
90 deletions
src/Config.h
+
4
−
90
View file @
9e2789a1
...
@@ -14,42 +14,12 @@
...
@@ -14,42 +14,12 @@
//
//
// Font sizes are in pixels.
// Font sizes are in pixels.
namespace
conf
{
namespace
conf
{
// Global settings.
constexpr
int
fontSize
=
14
;
constexpr
int
textInputFontSize
=
14
;
constexpr
int
emojiSize
=
14
;
constexpr
int
headerFontSize
=
21
;
constexpr
int
typingNotificationFontSize
=
11
;
namespace
popup
{
constexpr
int
font
=
fontSize
;
constexpr
int
avatar
=
28
;
}
namespace
modals
{
namespace
modals
{
constexpr
int
errorFont
=
conf
::
fontSize
-
2
;
constexpr
int
WIDGET_MARGIN
=
20
;
}
constexpr
int
WIDGET_SPACING
=
15
;
namespace
receipts
{
constexpr
int
font
=
12
;
}
namespace
dialogs
{
constexpr
int
labelSize
=
15
;
}
namespace
modals
{
constexpr
int
WIDGET_MARGIN
=
20
;
constexpr
int
WIDGET_SPACING
=
15
;
constexpr
int
WIDGET_TOP_MARGiN
=
2
*
WIDGET_MARGIN
;
constexpr
int
TEXT_SPACING
=
4
;
constexpr
int
BUTTON_SIZE
=
36
;
constexpr
int
BUTTON_RADIUS
=
BUTTON_SIZE
/
2
;
constexpr
auto
LABEL_MEDIUM_SIZE_RATIO
=
1.3
;
constexpr
auto
LABEL_MEDIUM_SIZE_RATIO
=
1.3
;
constexpr
auto
LABEL_BIG_SIZE_RATIO
=
2
;
}
}
namespace
strings
{
namespace
strings
{
...
@@ -69,67 +39,11 @@ static const QRegularExpression
...
@@ -69,67 +39,11 @@ static const QRegularExpression
// Window geometry.
// Window geometry.
namespace
window
{
namespace
window
{
constexpr
int
height
=
600
;
constexpr
int
height
=
600
;
constexpr
int
width
=
1066
;
constexpr
int
width
=
1066
;
constexpr
int
minModalWidth
=
340
;
constexpr
int
minHeight
=
340
;
constexpr
int
minHeight
=
340
;
constexpr
int
minWidth
=
340
;
constexpr
int
minWidth
=
340
;
}
// namespace window
}
// namespace window
namespace
textInput
{
constexpr
int
height
=
44
;
}
namespace
sidebarActions
{
constexpr
int
height
=
textInput
::
height
;
constexpr
int
iconSize
=
24
;
}
// Button settings.
namespace
btn
{
constexpr
int
fontSize
=
20
;
constexpr
int
cornerRadius
=
3
;
}
// namespace btn
// RoomList specific.
namespace
roomlist
{
namespace
fonts
{
constexpr
int
heading
=
13
;
constexpr
int
timestamp
=
heading
;
constexpr
int
badge
=
10
;
constexpr
int
bubble
=
20
;
constexpr
int
communityBubble
=
bubble
-
4
;
}
// namespace fonts
}
// namespace roomlist
namespace
userInfoWidget
{
namespace
fonts
{
constexpr
int
displayName
=
15
;
constexpr
int
userid
=
13
;
}
// namespace fonts
}
// namespace userInfoWidget
namespace
topRoomBar
{
namespace
fonts
{
constexpr
int
roomName
=
15
;
constexpr
int
roomDescription
=
14
;
}
// namespace fonts
}
// namespace topRoomBar
namespace
timeline
{
constexpr
int
msgAvatarTopMargin
=
15
;
constexpr
int
msgTopMargin
=
2
;
constexpr
int
msgLeftMargin
=
14
;
constexpr
int
avatarSize
=
36
;
constexpr
int
headerSpacing
=
3
;
constexpr
int
headerLeftMargin
=
15
;
namespace
fonts
{
constexpr
int
timestamp
=
13
;
constexpr
int
indicator
=
timestamp
-
2
;
constexpr
int
dateSeparator
=
conf
::
fontSize
;
}
// namespace fonts
}
// namespace timeline
}
// namespace conf
}
// namespace conf
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment