[geany/geany-plugins] 1587d6: Merge pull request #987 from DevynCJohnson/patch-4
Frank Lanitz
git-noreply at xxxxx
Fri Oct 9 22:18:28 UTC 2020
Branch: refs/heads/master
Author: Frank Lanitz <frank at frank.uvena.de>
Committer: GitHub <noreply at github.com>
Date: Fri, 09 Oct 2020 22:18:28 UTC
Commit: 1587d6d020f8b7ab1f03463f8fb033283dfdc2d9
https://github.com/geany/geany-plugins/commit/1587d6d020f8b7ab1f03463f8fb033283dfdc2d9
Log Message:
-----------
Merge pull request #987 from DevynCJohnson/patch-4
Additional Improvements to the Color Calltip
Modified Paths:
--------------
addons/README
addons/src/ao_colortip.c
Modified: addons/README
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -108,6 +108,9 @@ color value over which the mouse is hovered. The preferences option "Show
a calltip when hovering over a color value" is used to enable or disable
the extension.
+Append `-DLARGE_COLOR_TIP` to `CFLAGS` for a large color calltip or
+`-DXLARGE_COLOR_TIP` for an extra-large color calltip.
+
*Open Color Chooser on double clicking on a color value*
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This extension will open the Color Chooser if the user double clicks on
Modified: addons/src/ao_colortip.c
14 lines changed, 9 insertions(+), 5 deletions(-)
===================================================================
@@ -32,11 +32,15 @@ typedef struct _AoColorTipPrivate AoColorTipPrivate;
#define AO_COLORTIP_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj),\
AO_COLORTIP_TYPE, AoColorTipPrivate))
-// This is helpful for making the color-tip larger on 4K screens or for people with less acute vision
-#if (!(defined(COLOR_TIP_TEMPLATE) || defined(LARGE_COLOR_TIP)))
-# define COLOR_TIP_TEMPLATE " "
-#else
-# define COLOR_TIP_TEMPLATE " \n "
+// This is helpful for making the color-tip larger on 4K screens or for people with less acute vision
+#if (!defined(COLOR_TIP_TEMPLATE))
+# if defined(LARGE_COLOR_TIP)
+# define COLOR_TIP_TEMPLATE " \n "
+# elif defined(XLARGE_COLOR_TIP)
+# define COLOR_TIP_TEMPLATE " \n \n \n "
+# else
+# define COLOR_TIP_TEMPLATE " "
+# endif
#endif
struct _AoColorTip
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list