From c34318393d42d2eef0cf4dbabd3a8f4b653c3591 Mon Sep 17 00:00:00 2001 From: Alexey Kamenskiy Date: Sun, 2 Sep 2018 22:04:10 +0800 Subject: [PATCH] Add option for button text color inlining --- default.go | 2 +- flat.go | 2 +- hermes.go | 7 ++++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/default.go b/default.go index 1bb0d85..b8e2e94 100644 --- a/default.go +++ b/default.go @@ -367,7 +367,7 @@ func (dt *Default) HTMLTemplate() string {
- + {{ $action.Button.Text }}
diff --git a/flat.go b/flat.go index 85aad6d..955a568 100644 --- a/flat.go +++ b/flat.go @@ -367,7 +367,7 @@ func (dt *Flat) HTMLTemplate() string {
- + {{ $action.Button.Text }}
diff --git a/hermes.go b/hermes.go index e900333..6848ef4 100644 --- a/hermes.go +++ b/hermes.go @@ -104,9 +104,10 @@ type Action struct { // Button defines an action to launch type Button struct { - Color string - Text string - Link string + Color string + TextColor string + Text string + Link string } // Template is the struct given to Golang templating