Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
13b88a82
Commit
13b88a82
authored
Mar 06, 2020
by
Jean-Baptiste Mardelle
Browse files
Use a different icon color for effect groups
parent
3a7e2fa7
Pipeline
#16057
passed with stage
in 13 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/assets/assetlist/view/qmltypes/asseticonprovider.cpp
View file @
13b88a82
...
...
@@ -75,10 +75,14 @@ QImage AssetIconProvider::makeIcon(const QString &effectId, const QString &effec
QColor
col
(
t
);
bool
isAudio
=
false
;
bool
isCustom
=
false
;
bool
isGroup
=
false
;
if
(
m_effect
)
{
EffectType
type
=
EffectsRepository
::
get
()
->
getType
(
effectId
);
isAudio
=
type
==
EffectType
::
Audio
||
type
==
EffectType
::
CustomAudio
;
isCustom
=
type
==
EffectType
::
CustomAudio
||
type
==
EffectType
::
Custom
;
if
(
isCustom
)
{
isGroup
=
EffectsRepository
::
get
()
->
isGroup
(
effectId
);
}
}
else
{
auto
type
=
TransitionsRepository
::
get
()
->
getType
(
effectId
);
isAudio
=
(
type
==
TransitionType
::
AudioComposition
)
||
(
type
==
TransitionType
::
AudioTransition
);
...
...
@@ -88,7 +92,7 @@ QImage AssetIconProvider::makeIcon(const QString &effectId, const QString &effec
pix
.
fill
(
Qt
::
transparent
);
p
.
begin
(
&
pix
);
p
.
setPen
(
Qt
::
NoPen
);
p
.
setBrush
(
Qt
::
red
);
p
.
setBrush
(
isGroup
?
Qt
::
magenta
:
Qt
::
red
);
p
.
drawRoundedRect
(
pix
.
rect
(),
4
,
4
);
p
.
setPen
(
QPen
());
}
else
if
(
isAudio
)
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment