mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
* GuiDocument.cpp: do not hardcode colors that can be redefined in prefs..
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37949 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
b7ac0ee143
commit
45b6349139
@ -1518,7 +1518,7 @@ void GuiDocument::changeBackgroundColor()
|
||||
|
||||
void GuiDocument::deleteBackgroundColor()
|
||||
{
|
||||
// set the button color back to default by setting an epmty StyleSheet
|
||||
// set the button color back to default by setting an empty StyleSheet
|
||||
colorModule->backgroundPB->setStyleSheet(QLatin1String(""));
|
||||
// change button text
|
||||
colorModule->backgroundPB->setText(qt_("&Default..."));
|
||||
@ -1548,7 +1548,7 @@ void GuiDocument::changeFontColor()
|
||||
|
||||
void GuiDocument::deleteFontColor()
|
||||
{
|
||||
// set the button color back to default by setting an epmty StyleSheet
|
||||
// set the button color back to default by setting an empty StyleSheet
|
||||
colorModule->fontColorPB->setStyleSheet(QLatin1String(""));
|
||||
// change button text
|
||||
colorModule->fontColorPB->setText(qt_("&Default..."));
|
||||
@ -1576,11 +1576,10 @@ void GuiDocument::changeNoteFontColor()
|
||||
|
||||
void GuiDocument::deleteNoteFontColor()
|
||||
{
|
||||
// set the button color back to light gray
|
||||
// set the button color back to pref
|
||||
theApp()->getRgbColor(Color_notebg, set_notefontcolor);
|
||||
colorModule->noteFontColorPB->setStyleSheet(
|
||||
colorButtonStyleSheet(QColor(204, 204, 204, 255)));
|
||||
// save light gray as the set color
|
||||
set_notefontcolor = rgbFromHexName("#cccccc");
|
||||
colorButtonStyleSheet(rgb2qcolor(set_notefontcolor)));
|
||||
changed();
|
||||
}
|
||||
|
||||
@ -1602,11 +1601,10 @@ void GuiDocument::changeBoxBackgroundColor()
|
||||
|
||||
void GuiDocument::deleteBoxBackgroundColor()
|
||||
{
|
||||
// set the button color back to red
|
||||
// set the button color back to pref
|
||||
theApp()->getRgbColor(Color_shadedbg, set_boxbgcolor);
|
||||
colorModule->boxBackgroundPB->setStyleSheet(
|
||||
colorButtonStyleSheet(QColor(Qt::red)));
|
||||
// save red as the set color
|
||||
set_boxbgcolor = rgbFromHexName("#ff0000");
|
||||
colorButtonStyleSheet(rgb2qcolor(set_boxbgcolor)));
|
||||
changed();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user