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
7bd3e16b
Commit
7bd3e16b
authored
Feb 20, 2022
by
Waqar Ahmed
Browse files
Make url bar separators smaller
parent
677872ba
Pipeline
#140218
passed with stage
in 2 minutes and 30 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
kate/kateurlbar.cpp
View file @
7bd3e16b
...
...
@@ -365,7 +365,11 @@ public:
QStyledItemDelegate
::
initStyleOption
(
o
,
idx
);
o
->
decorationAlignment
=
Qt
::
AlignCenter
;
// We always want this icon size and nothing bigger
o
->
decorationSize
=
QSize
(
16
,
16
);
if
(
idx
.
data
(
BreadCrumbRole
::
IsSeparator
).
toBool
())
{
o
->
decorationSize
=
QSize
(
12
,
12
);
}
else
{
o
->
decorationSize
=
QSize
(
16
,
16
);
}
if
(
o
->
state
&
QStyle
::
State_MouseOver
)
{
// No hover feedback for separators
...
...
@@ -392,7 +396,7 @@ public:
return
size
;
}
else
if
(
!
idx
.
data
(
Qt
::
DecorationRole
).
isNull
())
{
QSize
s
(
1
6
,
1
6
);
QSize
s
(
1
2
,
1
2
);
s
=
s
.
grownBy
({
margin
,
0
,
margin
,
0
});
return
s
;
}
...
...
@@ -764,7 +768,7 @@ public:
m_sepLabel
->
hide
();
}
else
{
// Setup the icon now
m_sepLabel
->
setPixmap
(
QIcon
::
fromTheme
(
QStringLiteral
(
"arrow-right"
)).
pixmap
(
1
6
,
1
6
));
m_sepLabel
->
setPixmap
(
QIcon
::
fromTheme
(
QStringLiteral
(
"arrow-right"
)).
pixmap
(
1
2
,
1
2
));
}
});
}
...
...
Write
Preview
Markdown
is supported
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