Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
kdenlive
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farid Abdelnour
kdenlive
Commits
b7d4afda
Commit
b7d4afda
authored
Dec 27, 2018
by
Bhushan Shah
📱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Applications/18.12'
parents
b39395f5
3b1c2b8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
5 deletions
+27
-5
.gitlab-ci.yml
.gitlab-ci.yml
+3
-0
data/org.kde.kdenlive.appdata.xml
data/org.kde.kdenlive.appdata.xml
+1
-1
src/mainwindow.cpp
src/mainwindow.cpp
+1
-2
src/utils/thememanager.cpp
src/utils/thememanager.cpp
+22
-2
No files found.
.gitlab-ci.yml
0 → 100644
View file @
b7d4afda
include
:
-
https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-before.yml
-
https://invent.kde.org/sysadmin/ci-tooling/raw/master/invent/ci-applications-linux.yml
data/org.kde.kdenlive.appdata.xml
View file @
b7d4afda
...
...
@@ -262,7 +262,7 @@
</ul>
</description>
<releases>
<release
date=
"2018-1
0-11"
version=
"18.08.2
"
/>
<release
date=
"2018-1
2-13"
version=
"18.12.0
"
/>
</releases>
<url
type=
"homepage"
>
https://kdenlive.org/
</url>
<url
type=
"bugtracker"
>
https://bugs.kde.org
</url>
...
...
src/mainwindow.cpp
View file @
b7d4afda
...
...
@@ -674,12 +674,11 @@ void MainWindow::init(const QString &MltPath, const QUrl &Url, const QString &cl
void
MainWindow
::
slotThemeChanged
(
const
QString
&
theme
)
{
disconnect
(
this
,
&
MainWindow
::
reloadTheme
,
this
,
&
MainWindow
::
slotReloadTheme
);
KdenliveSettings
::
setColortheme
(
theme
);
KSharedConfigPtr
config
=
KSharedConfig
::
openConfig
(
theme
);
setPalette
(
KColorScheme
::
createApplicationPalette
(
config
));
qApp
->
setPalette
(
palette
());
QPalette
plt
=
palette
();
KdenliveSettings
::
setColortheme
(
theme
);
if
(
m_effectStack
)
{
m_effectStack
->
updatePalette
();
m_effectStack
->
transitionConfig
()
->
updatePalette
();
...
...
src/utils/thememanager.cpp
View file @
b7d4afda
...
...
@@ -115,14 +115,35 @@ void ThemeManager::setCurrentTheme(const QString &filename)
if
(
!
d
->
themeMenuAction
||
!
d
->
themeMenuActionGroup
)
{
return
;
}
QString
name
=
d
->
themeMap
.
key
(
filename
,
d
->
defaultThemeName
);
QString
name
=
d
->
themeMap
.
key
(
filename
);
// In the case of AppImage, the path to the color scheme can be invalid
// on each start as filesystem is mounted with a random path, so check that and correct
if
(
name
.
isEmpty
())
{
QMapIterator
<
QString
,
QString
>
i
(
d
->
themeMap
);
while
(
i
.
hasNext
())
{
i
.
next
();
if
(
QFileInfo
(
i
.
value
()).
fileName
()
==
QFileInfo
(
filename
).
fileName
())
{
name
=
i
.
key
();
break
;
}
}
if
(
name
.
isEmpty
())
{
name
=
d
->
defaultThemeName
;
}
}
bool
themeFound
=
false
;
const
QList
<
QAction
*>
list
=
d
->
themeMenuActionGroup
->
actions
();
for
(
QAction
*
const
action
:
list
)
{
if
(
action
->
text
().
remove
(
'&'
)
==
name
)
{
action
->
setChecked
(
true
);
themeFound
=
true
;
break
;
//slotChangePalette();
}
}
if
(
!
themeFound
&&
filename
!=
d
->
defaultThemeName
)
{
setCurrentTheme
(
d
->
defaultThemeName
);
}
}
void
ThemeManager
::
slotChangePalette
()
...
...
@@ -138,7 +159,6 @@ void ThemeManager::slotChangePalette()
QString
filename
=
d
->
themeMap
.
value
(
theme
);
//qCDebug(KDENLIVE_LOG) << theme << " :: " << filename;
emit
signalThemeChanged
(
filename
);
}
...
...
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