Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
0a76d453
Commit
0a76d453
authored
Mar 17, 2021
by
Waqar Ahmed
Browse files
Fix i18n in commit dialog and use breeze-danger-red color
Signed-off-by:
Waqar Ahmed
<
waqar.17a@gmail.com
>
parent
514c1ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
addons/project/gitcommitdialog.cpp
View file @
0a76d453
...
...
@@ -142,11 +142,12 @@ bool GitCommitDialog::signoff() const
void
GitCommitDialog
::
updateLineSizeLabel
()
{
static
constexpr
auto
red
=
QColor
(
237
,
21
,
21
);
// Breeze Danger Red
int
len
=
m_le
.
text
().
length
();
if
(
len
<
52
)
{
m_leLen
.
setText
(
i18n
(
"%1 / 52"
).
arg
(
QString
::
number
(
len
)));
m_leLen
.
setText
(
i18n
c
(
"Number of characters"
,
"%1 / 52"
,
QString
::
number
(
len
)));
}
else
{
changeTextColorToRed
(
&
m_le
);
m_leLen
.
setText
(
QStringLiteral
(
"<span style=
\"
color:
red
;
\"
>%
1
</span> / 52"
).
arg
(
QString
::
number
(
len
)));
m_leLen
.
setText
(
i18nc
(
"Number of characters"
,
"<span style=
\"
color:
%1
;
\"
>%
2
</span> / 52"
,
red
.
name
(),
QString
::
number
(
len
)));
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment