From f9eb4db3fc8914b1d1e028cbf488d7ab85ec8a7d Mon Sep 17 00:00:00 2001 From: sqshq Date: Tue, 6 Aug 2019 22:34:12 -0400 Subject: [PATCH] replace intro and status bar text --- component/intro.go | 34 +++++++++++++++++++++++----------- console/console.go | 4 ++-- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/component/intro.go b/component/intro.go index d4616bd..4bfb41d 100644 --- a/component/intro.go +++ b/component/intro.go @@ -66,21 +66,33 @@ func (intro *Intro) Draw(buffer *ui.Buffer) { introText := append(util.AsciiLogo, []string{ "", "", "", "Welcome.", - "Sampler is free of charge for personal use, but license must be purchased to use it for business purposes.", - "By proceeding, you agree to the terms of the License Agreement and Privacy Policy: www.sampler.dev/license", + "", + "Sampler is an OSS project, and it needs funding to be alive and keep developing", + "Before the first start, please explore our licensing options below. For more details, visit WWW.SAMPLER.DEV", "", "", "", "How do you plan to use Sampler?", }...) commericalText := append(util.AsciiLogo, []string{ "", "", "", "", - "Please visit www.sampler.dev to purchase a license and then start Sampler with --license flag", + "With Sampler, you can easily save time and solve some of your business problems.", + "That's why support of the project is in the interest of your organization.", + "", + "", + "We are offering commercial licenses which provide priority support and technical assistance.", + "After entering the licence key, your company name will appear in the status bar.", + "", + "", + "To make a purchase, please visit WWW.SAMPLER.DEV", }...) personalText := append(util.AsciiLogo, []string{ "", "", "", "", - "Sampler is always free for non-commercial use, but you can support the project and donate any amount to get a personal license:", - "www.sampler.dev", + "Sampler is always free to use, but you can support the project and donate any amount to get a personal license.", + "Once it is activated, your name will appear in the status bar.", + "", + "", + "To become a sponsor, please visit WWW.SAMPLER.DEV", }...) text := introText @@ -117,13 +129,13 @@ func (intro *Intro) Draw(buffer *ui.Buffer) { personalButtonStyle = regularStyle } - buffer.SetString(string(buttonCommercial), commercialButtonStyle, - util.GetMiddlePoint(intro.Block.Rectangle, string(buttonCommercial), 6)) - buffer.SetString(string(buttonPersonal), personalButtonStyle, - util.GetMiddlePoint(intro.Block.Rectangle, string(buttonPersonal), 8)) + buffer.SetString(buttonCommercial, commercialButtonStyle, + util.GetMiddlePoint(intro.Block.Rectangle, buttonCommercial, 5)) + buffer.SetString(buttonPersonal, personalButtonStyle, + util.GetMiddlePoint(intro.Block.Rectangle, buttonPersonal, 7)) } else { - buffer.SetString(string(buttonOk), highlightedStyle, - util.GetMiddlePoint(intro.Block.Rectangle, string(buttonOk), 4)) + buffer.SetString(buttonOk, highlightedStyle, + util.GetMiddlePoint(intro.Block.Rectangle, buttonOk, 7)) } intro.Block.Draw(buffer) diff --git a/console/console.go b/console/console.go index 9580e36..c2911b9 100644 --- a/console/console.go +++ b/console/console.go @@ -14,8 +14,8 @@ const ( ColumnsCount = 80 RowsCount = 40 AppTitle = "sampler" - AppVersion = "1.0.1" - AppLicenseWarning = "UNLICENSED. FOR NON-COMMERCIAL USE ONLY. VISIT WWW.SAMPLER.DEV" + AppVersion = "1.0.2" + AppLicenseWarning = "NOT ACTIVATED. PLEASE CONSIDER TO PURCHASE PERSONAL OR COMMERCIAL LICENSE TO SUPPORT THE PROJECT. WWW.SAMPLER.DEV " ) const (