Determines the color to use to indicate the button has focus. This setting is only used by Linux. :return: Pair of colors. (Highlight, Highlight Background) :rtype: (str, str)
(self)
| 4941 | return |
| 4942 | |
| 4943 | def _compute_highlight_colors(self): |
| 4944 | """ |
| 4945 | Determines the color to use to indicate the button has focus. This setting is only used by Linux. |
| 4946 | :return: Pair of colors. (Highlight, Highlight Background) |
| 4947 | :rtype: (str, str) |
| 4948 | """ |
| 4949 | highlight_color = highlight_background = COLOR_SYSTEM_DEFAULT |
| 4950 | if self.ButtonColor != COLOR_SYSTEM_DEFAULT and theme_background_color() != COLOR_SYSTEM_DEFAULT: |
| 4951 | highlight_background = theme_background_color() |
| 4952 | if self.ButtonColor != COLOR_SYSTEM_DEFAULT and self.ButtonColor[0] != COLOR_SYSTEM_DEFAULT: |
| 4953 | if self.ButtonColor[0] != theme_background_color(): |
| 4954 | highlight_color = self.ButtonColor[0] |
| 4955 | else: |
| 4956 | highlight_color = 'red' |
| 4957 | return (highlight_color, highlight_background) |
| 4958 | |
| 4959 | # Realtime button release callback |
| 4960 | |
| 4961 | def ButtonReleaseCallBack(self, parm): |
| 4962 | """ |
no test coverage detected