Hello community, here is the log from the commit of package plasma-addons for openSUSE:Factory checked in at 2013-05-28 14:40:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/plasma-addons (Old) and /work/SRC/openSUSE:Factory/.plasma-addons.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "plasma-addons" Changes: -------- --- /work/SRC/openSUSE:Factory/plasma-addons/plasma-addons.changes 2013-05-16 18:14:34.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.plasma-addons.new/plasma-addons.changes 2013-05-28 14:40:42.000000000 +0200 @@ -1,0 +2,15 @@ +Thu May 23 22:33:34 UTC 2013 - wba...@tmo.at + +- changed notes.diff: + * re-read background color config in themeChanged() to change + background color immediately on a plasma theme change if necessary + * fix the bug that the text color wasn't updated visually on a + plasma theme change + +------------------------------------------------------------------- +Thu May 23 08:38:51 UTC 2013 - wba...@tmo.at + +- changed notes.diff: only use black as default background if the + theme's text color is brighter than a certain threshold. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ notes.diff ++++++ --- /var/tmp/diff_new_pack.JjD7QF/_old 2013-05-28 14:40:43.000000000 +0200 +++ /var/tmp/diff_new_pack.JjD7QF/_new 2013-05-28 14:40:43.000000000 +0200 @@ -5,7 +5,7 @@ : QGraphicsWidget(parent), m_notesTheme(new Plasma::Svg(this)), - m_color("yellow-notes") -+ m_color("black-notes") ++ m_color(Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor).lightness() > 100 ? "black-notes" : "yellow-notes") { m_notesTheme->setImagePath("widgets/notes"); m_notesTheme->setContainsMultipleImages(false); @@ -14,7 +14,22 @@ { KConfigGroup cg = config(); - m_topWidget->setColor(cg.readEntry("color", "yellow")); -+ m_topWidget->setColor(cg.readEntry("color", "black")); ++ m_topWidget->setColor(cg.readEntry("color", Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor).lightness() > 100 ? "black" : "yellow")); // color must be before setPlainText("foo") m_useThemeColor = cg.readEntry("useThemeColor", true); m_useNoColor = cg.readEntry("useNoColor", true); +@@ -357,6 +357,13 @@ void Notes::themeChanged() + { ++ KConfigGroup cg = config(); ++ m_topWidget->setColor(cg.readEntry("color", Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor).lightness() > 100 ? "black" : "yellow")); + if (m_useThemeColor) { + m_textColor = Plasma::Theme::defaultTheme()->color(Plasma::Theme::ButtonTextColor); +- update(); ++ // update text color ++ QTextCursor oldCursor = m_noteEditor->textCursor(); ++ m_noteEditor->selectAll(); ++ m_noteEditor->setTextColor(m_textColor); ++ m_noteEditor->setTextCursor(oldCursor); + } ++ update(); + } -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org