From 91be1388ea8639d23acdf070501438990adebe8a Mon Sep 17 00:00:00 2001 From: Andrew Burdyug Date: Sun, 21 Apr 2024 01:24:03 +0300 Subject: [PATCH] Add light theme demo --- README.md | 5 ++++ demo/config-light.json | 54 ++++++++++++++++++++++++++++++++++++++++++ demo/main-light.tape | 41 ++++++++++++++++++++++++++++++++ 3 files changed, 100 insertions(+) create mode 100644 demo/config-light.json create mode 100644 demo/main-light.tape diff --git a/README.md b/README.md index 8e36c06..bfc87b2 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,9 @@ [![goreportcard](https://goreportcard.com/badge/github.com/1buran/rHttp)](https://goreportcard.com/report/github.com/1buran/redmine) ![Main demo](https://i.imgur.com/I0vIcFS.gif) +#### Color themes (all used colors and emojis are configurable) +![Light theme](https://i.imgur.com/Cy1xQVj.gif) + #### Responses with minified JSON ![JSON min](https://i.imgur.com/FFrxom5.gif) @@ -144,6 +147,7 @@ vhs demo/load-session.tape vhs demo/redirects.tape vhs demo/edit-json-payload.tape vhs demo/attach-file.tape +vhs demo/main-light.tape ``` ### imgur @@ -157,6 +161,7 @@ demo["load-session"]="Load session" demo["redirects"]="Redirects" demo["edit-json-payload"]="Edit JSON Payload" demo["attach-file"]="Attach file" +demo["main-light"]="Light theme" for i in ${!demo[@]}; do . .env && url=`curl --location https://api.imgur.com/3/image \ diff --git a/demo/config-light.json b/demo/config-light.json new file mode 100644 index 0000000..4537fbb --- /dev/null +++ b/demo/config-light.json @@ -0,0 +1,54 @@ +{ + "Settings": { + "Checkboxes": { + "https": false, + "autoformat": false + } + }, + "Theme": { + "Chroma": "modus-operandi", + "Emojis": { + "statusbarResOk": "🍀", + "statusbarResWarning": "🍂", + "statusbarResError": "🍁", + "statusbarResWeird": "🤔", + "statusbarDefaultIndicator": "🌲" + }, + "Colors": { + "checkboxOn": "22", + "checkboxOff": "16", + "fileinputPrompt": "54", + "fileinputPlaceholder": "235", + "fileinputText": "17", + "headerName": "89", + "headerValue": "54", + "helpKey": "17", + "helpDesc": "20", + "pressedKeyPrompt": "17", + "pressedKeyText": "234", + "requestBody": "234", + "statusbarFg": "#C1C6B2", + "statusbarBg": "#353533", + "statusbarTextWarning": "202", + "statusbarTextError": "234", + "statusbarIndicator": "#6124DF", + "statusbarNugget": "#FFFDF5", + "statusbarBadgeBg": "#59A8C9", + "statusbarBadgeFg": "#FFFDF5", + "statusbarBadgeError": "#FF5F87", + "statusbarBadgeOk": "#2e8048", + "statusbarBadgeWarning": "130", + "statusbarReqCount": "#A550DF", + "statusbarResTime": "#C550DF", + "textinputPrompt": "57", + "textinputPromptActive": "54", + "textinputPlaceholder": "243", + "textinputPlaceholderActive": "236", + "textinputText": "54", + "textareaCursorLine": "234", + "textareaPlaceholder": "236", + "textareaText": "54", + "url": "232" + } + } +} diff --git a/demo/main-light.tape b/demo/main-light.tape new file mode 100644 index 0000000..5fd1628 --- /dev/null +++ b/demo/main-light.tape @@ -0,0 +1,41 @@ +Output demo/main-light.gif + +Set Shell "bash" +Set Theme "Belafonte Day" +Set FontSize 16 +Set Padding 2 +Set Margin 2 +Set Width 1280 +Set Height 1024 +Set Framerate 60 +Set TypingSpeed 150ms +Set PlaybackSpeed 0.5 +Set CursorBlink false + +Require rhttp +Type "rhttp -c demo/config-light.json" Enter + +Sleep 3 +Ctrl + h +Sleep 3 + +Ctrl + f + +Enter +Backspace 9 +Copy "api.coinlore.net" +Paste +Enter +Copy "/api/tickers/" +Paste +Enter 9 +Space +Enter +Space +Sleep 3 +Ctrl + g +PageDown 10 +Sleep 3 +PageUp 10 +Sleep 3 +Ctrl + q