Mercurial > octave
diff libgui/src/module.mk @ 29220:ab8aa1bb3c2f
add gui utilities with first function for color interpolation
* gui-utils.cc: new file;
(interpolate_color): new function for deteriming a color similar to a
first color but with less contrast to a second one
* gui-utils.h: new file with declaration of interpolate_color
* file-editor-tab.cc (update_lexer_settings): use new utility function
for computing margin colors from given editor colors
* led-indicator.cc (style_sheet): use new utility function for computing
the colors for the led indicator
* module.mk: added source gui.utils.cc with header gui-utils.h
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Sun, 27 Dec 2020 19:07:32 +0100 |
parents | 8a425e771aa7 |
children | b92614cfdfed |
line wrap: on
line diff
--- a/libgui/src/module.mk Fri Dec 25 17:13:14 2020 +0100 +++ b/libgui/src/module.mk Sun Dec 27 19:07:32 2020 +0100 @@ -239,7 +239,8 @@ %reldir%/variable-editor.h \ %reldir%/variable-editor-model.h \ %reldir%/set-path-dialog.h \ - %reldir%/set-path-model.h + %reldir%/set-path-model.h \ + %reldir%/gui-utils.h %canon_reldir%_%canon_reldir%_la_SOURCES = \ @@ -280,7 +281,8 @@ %reldir%/variable-editor.cc \ %reldir%/variable-editor-model.cc \ %reldir%/set-path-dialog.cc \ - %reldir%/set-path-model.cc + %reldir%/set-path-model.cc \ + %reldir%/gui-utils.cc nodist_%canon_reldir%_%canon_reldir%_la_SOURCES = \ $(octave_gui_MOC) \