mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Simplify and pythonize.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36072 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
890b4b419a
commit
5e6173b7e2
@ -1175,9 +1175,7 @@ def revert_notefontcolor(document):
|
|||||||
['% Commands inserted by lyx2lyx to set the font color',
|
['% Commands inserted by lyx2lyx to set the font color',
|
||||||
'% for greyed-out notes',
|
'% for greyed-out notes',
|
||||||
'\\@ifundefined{definecolor}{\\usepackage{color}}{}'
|
'\\@ifundefined{definecolor}{\\usepackage{color}}{}'
|
||||||
'\\definecolor{note_fontcolor}{rgb}{'
|
'\\definecolor{note_fontcolor}{rgb}{%s,%s,%s}' % (red, green, blue),
|
||||||
+ str(red) + ', ' + str(green)
|
|
||||||
+ ', ' + str(blue) + '}',
|
|
||||||
'\\renewenvironment{lyxgreyedout}',
|
'\\renewenvironment{lyxgreyedout}',
|
||||||
' {\\textcolor{note_fontcolor}\\bgroup}{\\egroup}'])
|
' {\\textcolor{note_fontcolor}\\bgroup}{\\egroup}'])
|
||||||
|
|
||||||
@ -1218,8 +1216,7 @@ def revert_fontcolor(document):
|
|||||||
insert_to_preamble(0, document,
|
insert_to_preamble(0, document,
|
||||||
['% Commands inserted by lyx2lyx to set the font color',
|
['% Commands inserted by lyx2lyx to set the font color',
|
||||||
'\\@ifundefined{definecolor}{\\usepackage{color}}{}',
|
'\\@ifundefined{definecolor}{\\usepackage{color}}{}',
|
||||||
'\\definecolor{document_fontcolor}{rgb}{'
|
'\\definecolor{document_fontcolor}{rgb}{%s,%s,%s}' % (red, green, blue),
|
||||||
+ str(red) + ', ' + str(green) + ', ' + str(blue) + '}',
|
|
||||||
'\\color{document_fontcolor}'])
|
'\\color{document_fontcolor}'])
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user