Implement and move some colour-aware helper methods into the Theme class
authorMichael Schuster <michael@schuster.ms>
Mon, 9 Dec 2019 19:34:27 +0000 (20:34 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Mon, 9 Dec 2019 20:37:21 +0000 (21:37 +0100)
commitbe4fc6b8874a6030d1fa456f63fd387504abecc7
treeb66da4b8784506c7ef931de87e34eef6184a4cd9
parent2dae31486a77f1ed99ec9a7f6c29efd71d8c8ada
Implement and move some colour-aware helper methods into the Theme class

This introduces a new method to change the colours in the links in QLabel's.
Utilizes a custom crafted RegEx function to replace already-coloured links.

Moved code is based on stuff from the SettingsDialog class.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/settingsdialog.cpp
src/gui/settingsdialog.h
src/libsync/theme.cpp
src/libsync/theme.h