Skip to content

Commit

Permalink
Add light theme demo
Browse files Browse the repository at this point in the history
  • Loading branch information
1buran committed Apr 20, 2024
1 parent cf67fd6 commit 91be138
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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

Expand All @@ -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 \
Expand Down
54 changes: 54 additions & 0 deletions demo/config-light.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
41 changes: 41 additions & 0 deletions demo/main-light.tape
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 91be138

Please sign in to comment.