projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix dark mode for release notes.
[dcpomatic.git]
/
src
/
lib
/
release_notes.cc
diff --git
a/src/lib/release_notes.cc
b/src/lib/release_notes.cc
index 23671318435fba263b3901aa5d53adf5241902ee..d697384277a418566544c32d87c7522db0315ac5 100644
(file)
--- a/
src/lib/release_notes.cc
+++ b/
src/lib/release_notes.cc
@@
-31,7
+31,7
@@
using boost::optional;
optional<string>
optional<string>
-find_release_notes(optional<string> current)
+find_release_notes(
bool dark,
optional<string> current)
{
auto last = Config::instance()->last_release_notes_version();
if (!current) {
{
auto last = Config::instance()->last_release_notes_version();
if (!current) {
@@
-43,14
+43,18
@@
find_release_notes(optional<string> current)
Config::instance()->set_last_release_notes_version(*current);
Config::instance()->set_last_release_notes_version(*current);
- const string header = String::compose("<h1>DCP-o-matic %1 release notes</h1>", *current);
+ string const colour = dark ? "white" : "black";
+ auto const span = String::compose("<span style=\"color: %1\">", colour);
+
+ const string header = String::compose("<h1>%1DCP-o-matic %2 release notes</span></h1>", span, *current);
if (!last) {
if (!last) {
- return header +
+ return header +
span +
_("In this version there are changes to the way that subtitles are positioned. "
"Positioning should now be more correct, with respect to the standards, but you "
"should check any subtitles in your project to make sure that they are placed "
_("In this version there are changes to the way that subtitles are positioned. "
"Positioning should now be more correct, with respect to the standards, but you "
"should check any subtitles in your project to make sure that they are placed "
- "where you want them.");
+ "where you want them.")
+ + "</span>";
}
return {};
}
return {};