Skip to content

Commit

Permalink
build: dependency upgrades
Browse files Browse the repository at this point in the history
Handle terminal resizing better
+linting fixes
+lint and vuln checks on CI
  • Loading branch information
dhth committed Jun 22, 2024
1 parent 953ad68 commit f803488
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 69 deletions.
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "dependencies"
commit-message:
prefix: "chore"
include: "scope"
25 changes: 18 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
name: Go build
name: build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
paths:
- "go.*"
- "**/*.go"
- ".github/workflows/*.yml"

jobs:
permissions:
contents: read

env:
GO_VERSION: '1.22.4'

jobs:
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.0'

- name: Build
go-version: ${{ env.GO_VERSION }}
- name: go build
run: go build -v ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.58
14 changes: 9 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
name: Release
name: release

on:
push:
tags:
- 'v*'

jobs:
env:
GO_VERSION: '1.22.4'

build:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22.0'
go-version: ${{ env.GO_VERSION }}
- name: Build
run: go build -v ./...
- name: Install Cosign
Expand All @@ -27,7 +31,7 @@ jobs:
env:
COSIGN_KEY: ${{secrets.COSIGN_KEY}}
- name: Release Binaries
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/vulncheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: vulncheck
on:
push:
branches: [ "main" ]
pull_request:
paths:
- "go.*"
- "**/*.go"
- ".github/workflows/*.yml"

permissions:
contents: read

env:
GO_VERSION: '1.22.4'

jobs:
vulncheck:
name: vulncheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: govulncheck
shell: bash
run: |
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...
24 changes: 14 additions & 10 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,30 @@ go 1.22.0

require (
github.com/charmbracelet/bubbles v0.18.0
github.com/charmbracelet/bubbletea v0.25.0
github.com/charmbracelet/lipgloss v0.10.0
github.com/charmbracelet/bubbletea v0.26.5
github.com/charmbracelet/lipgloss v0.11.0
)

require (
github.com/atotto/clipboard v0.1.4 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
github.com/charmbracelet/x/ansi v0.1.2 // indirect
github.com/charmbracelet/x/input v0.1.2 // indirect
github.com/charmbracelet/x/term v0.1.1 // indirect
github.com/charmbracelet/x/windows v0.1.2 // indirect
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.18 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-localereader v0.0.1 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect
github.com/muesli/cancelreader v0.2.2 // indirect
github.com/muesli/reflow v0.3.0 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f // indirect
golang.org/x/sync v0.1.0 // indirect
golang.org/x/sys v0.12.0 // indirect
golang.org/x/term v0.6.0 // indirect
golang.org/x/text v0.3.8 // indirect
github.com/sahilm/fuzzy v0.1.1 // indirect
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
golang.org/x/sync v0.7.0 // indirect
golang.org/x/sys v0.21.0 // indirect
golang.org/x/text v0.16.0 // indirect
)
52 changes: 31 additions & 21 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,33 @@ github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiE
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/charmbracelet/bubbles v0.18.0 h1:PYv1A036luoBGroX6VWjQIE9Syf2Wby2oOl/39KLfy0=
github.com/charmbracelet/bubbles v0.18.0/go.mod h1:08qhZhtIwzgrtBjAcJnij1t1H0ZRjwHyGsy6AL11PSw=
github.com/charmbracelet/bubbletea v0.25.0 h1:bAfwk7jRz7FKFl9RzlIULPkStffg5k6pNt5dywy4TcM=
github.com/charmbracelet/bubbletea v0.25.0/go.mod h1:EN3QDR1T5ZdWmdfDzYcqOCAps45+QIJbLOBxmVNWNNg=
github.com/charmbracelet/lipgloss v0.10.0 h1:KWeXFSexGcfahHX+54URiZGkBFazf70JNMtwg/AFW3s=
github.com/charmbracelet/lipgloss v0.10.0/go.mod h1:Wig9DSfvANsxqkRsqj6x87irdy123SR4dOXlKa91ciE=
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
github.com/charmbracelet/bubbletea v0.26.5 h1:90pqTPElAReb/qQUgSMUresTkfwVr0Wx+zczeHHOgxk=
github.com/charmbracelet/bubbletea v0.26.5/go.mod h1:dz8CWPlfCCGLFbBlTY4N7bjLiyOGDJEnd2Muu7pOWhk=
github.com/charmbracelet/lipgloss v0.11.0 h1:UoAcbQ6Qml8hDwSWs0Y1cB5TEQuZkDPH/ZqwWWYTG4g=
github.com/charmbracelet/lipgloss v0.11.0/go.mod h1:1UdRTH9gYgpcdNN5oBtjbu/IzNKtzVtb7sqN1t9LNn8=
github.com/charmbracelet/x/ansi v0.1.2 h1:6+LR39uG8DE6zAmbu023YlqjJHkYXDF1z36ZwzO4xZY=
github.com/charmbracelet/x/ansi v0.1.2/go.mod h1:dk73KoMTT5AX5BsX0KrqhsTqAnhZZoCBjs7dGWp4Ktw=
github.com/charmbracelet/x/input v0.1.2 h1:QJAZr33eOhDowkkEQ24rsJy4Llxlm+fRDf/cQrmqJa0=
github.com/charmbracelet/x/input v0.1.2/go.mod h1:LGBim0maUY4Pitjn/4fHnuXb4KirU3DODsyuHuXdOyA=
github.com/charmbracelet/x/term v0.1.1 h1:3cosVAiPOig+EV4X9U+3LDgtwwAoEzJjNdwbXDjF6yI=
github.com/charmbracelet/x/term v0.1.1/go.mod h1:wB1fHt5ECsu3mXYusyzcngVWWlu1KKUmmLhfgr/Flxw=
github.com/charmbracelet/x/windows v0.1.2 h1:Iumiwq2G+BRmgoayww/qfcvof7W/3uLoelhxojXlRWg=
github.com/charmbracelet/x/windows v0.1.2/go.mod h1:GLEO/l+lizvFDBPLIOk+49gdX49L9YWMB5t+DZd0jkQ=
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/mattn/go-isatty v0.0.18 h1:DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
github.com/mattn/go-isatty v0.0.18/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk=
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b h1:1XF24mVaiu7u+CFywTdcDo2ie1pzzhwjt6RHqzpMU34=
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b/go.mod h1:fQuZ0gauxyBcmsdE3ZT4NasjaRdxmbCS0jRHsrWu3Ho=
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 h1:ZK8zHtRHOkbHy6Mmr5D264iyp3TiX5OmNcI5cIARiQI=
github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6/go.mod h1:CJlz5H+gyd6CUWT45Oy4q24RdLyn7Md9Vj2/ldJBSIo=
github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA=
github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo=
github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
Expand All @@ -33,15 +41,17 @@ github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f h1:MvTmaQdww/z0Q4wrYjDSCcZ78NoftLQyHBSLW/Cx79Y=
github.com/sahilm/fuzzy v0.1.1-0.20230530133925-c48e322e2a8f/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
github.com/sahilm/fuzzy v0.1.1 h1:ceu5RHF8DGgoi+/dR5PsECjCDH1BE3Fnmpo7aVXOdRA=
github.com/sahilm/fuzzy v0.1.1/go.mod h1:VFvziUEIMCrT6A6tw2RFIXPXXmzXbOsSHF0DOI8ZK9Y=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavMF/ppJZNG9ZpyihvCd0w101no=
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561 h1:MDc5xs78ZrZr3HMQugiXOAkSZtfTpbJLDr/lwfgO53E=
golang.org/x/exp v0.0.0-20220909182711-5c715a9e8561/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o=
golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw=
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
golang.org/x/text v0.3.8 h1:nAL+RVCQ9uMn3vJZbV+MRnydTJFPf8qqY42YiA6MrqY=
golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ=
golang.org/x/sys v0.21.0 h1:rF+pYz3DAGSQAxAu1CbC7catZg4ebC4UIeIhKxBZvws=
golang.org/x/sys v0.21.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4=
golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI=
3 changes: 1 addition & 2 deletions internal/ui/delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ func newCmdItemDelegate() list.DefaultDelegate {
Foreground(lipgloss.Color(cmdRunListColor)).
BorderLeftForeground(lipgloss.Color(cmdRunListColor))
d.Styles.SelectedDesc = d.Styles.
SelectedTitle.
Copy()
SelectedTitle

d.UpdateFunc = func(msg tea.Msg, m *list.Model) tea.Cmd {
switch msgType := msg.(type) {
Expand Down
10 changes: 5 additions & 5 deletions internal/ui/initial.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ func InitialModel(cmd []string, numRuns int, sequential bool, delayMS int, stopO
PaddingRight(1).
Foreground(lipgloss.Color(defaultBackgroundColor))

tableListStyle := baseStyle.Copy().
tableListStyle := baseStyle.
PaddingTop(1).
PaddingRight(2).
PaddingLeft(1).
PaddingBottom(1)

outputTitleStyle := inActivePaneHeaderStyle.Copy().
outputTitleStyle := inActivePaneHeaderStyle.
Background(lipgloss.Color(inactivePaneColor))

m := model{
Expand All @@ -63,9 +63,9 @@ func InitialModel(cmd []string, numRuns int, sequential bool, delayMS int, stopO
m.runList.DisableQuitKeybindings()
m.runList.SetShowHelp(false)
m.runList.SetFilteringEnabled(false)
m.runList.Styles.Title.Foreground(lipgloss.Color(defaultBackgroundColor))
m.runList.Styles.Title.Background(lipgloss.Color(cmdRunListColor))
m.runList.Styles.Title.Bold(true)
m.runList.Styles.Title = m.runList.Styles.Title.Foreground(lipgloss.Color(defaultBackgroundColor)).
Background(lipgloss.Color(cmdRunListColor)).
Bold(true)

return m
}
1 change: 0 additions & 1 deletion internal/ui/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type model struct {
terminalWidth int
showHelp bool
activePane Pane
lastPane Pane
firstFetch bool
sequential bool
delayMS int
Expand Down
16 changes: 8 additions & 8 deletions internal/ui/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,30 +32,30 @@ var (
PaddingRight(1).
Foreground(lipgloss.Color("#282828"))

modeStyle = baseStyle.Copy().
modeStyle = baseStyle.
Align(lipgloss.Center).
Bold(true).
Background(lipgloss.Color("#b8bb26"))

cmdIndicatorStyle = lipgloss.NewStyle().
Bold(true)

cmdWaitingStyle = cmdIndicatorStyle.Copy().
cmdWaitingStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdWaitingColor))

cmdScheduledStyle = cmdIndicatorStyle.Copy().
cmdScheduledStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdScheduledColor))

cmdRunningStyle = cmdIndicatorStyle.Copy().
cmdRunningStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdRunningColor))

cmdRanStyle = cmdIndicatorStyle.Copy().
cmdRanStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdRanColor))

cmdErrorStyle = cmdIndicatorStyle.Copy().
cmdErrorStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdErrorColor))

cmdAbandonedStyle = cmdIndicatorStyle.Copy().
cmdAbandonedStyle = cmdIndicatorStyle.
Foreground(lipgloss.Color(cmdAbandonedColor))

cmdErrorDetailsStyle = lipgloss.NewStyle().
Expand All @@ -81,7 +81,7 @@ var (
Bold(true).
Foreground(lipgloss.Color(cmdAbandonedColor))

inActivePaneHeaderStyle = baseStyle.Copy().
inActivePaneHeaderStyle = baseStyle.
Align(lipgloss.Left).
Bold(true).
Background(lipgloss.Color(inactivePaneColor))
Expand Down
20 changes: 10 additions & 10 deletions internal/ui/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
switch m.activePane {
case outputPane:
m.activePane = cmdRunListPane
m.outputTitleStyle.Background(lipgloss.Color(inactivePaneColor))
m.runList.Styles.Title.Background(lipgloss.Color(activePaneColor))
m.outputTitleStyle = m.outputTitleStyle.Background(lipgloss.Color(inactivePaneColor))
m.runList.Styles.Title = m.runList.Styles.Title.Background(lipgloss.Color(activePaneColor))
default:
return m, tea.Quit
}
case "tab", "shift+tab":
if m.activePane == cmdRunListPane {
m.activePane = outputPane
m.outputTitleStyle.Background(lipgloss.Color(activePaneColor))
m.runList.Styles.Title.Background(lipgloss.Color(inactivePaneColor))
m.outputTitleStyle = m.outputTitleStyle.Background(lipgloss.Color(activePaneColor))
m.runList.Styles.Title = m.runList.Styles.Title.Background(lipgloss.Color(inactivePaneColor))
} else if m.activePane == outputPane {
m.activePane = cmdRunListPane
m.outputTitleStyle.Background(lipgloss.Color(inactivePaneColor))
m.runList.Styles.Title.Background(lipgloss.Color(activePaneColor))
m.outputTitleStyle = m.outputTitleStyle.Background(lipgloss.Color(inactivePaneColor))
m.runList.Styles.Title = m.runList.Styles.Title.Background(lipgloss.Color(activePaneColor))
}
}
case HideHelpMsg:
Expand All @@ -44,15 +44,15 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.terminalWidth = msg.Width
m.terminalHeight = msg.Height
m.runList.SetHeight(msg.Height - h1 - 2)
m.runList.SetWidth(int(float64(msg.Width-w1) * 0.3))
m.runListStyle.Width(int(float64(msg.Width-w1) * 0.3))
m.runList.SetWidth(int(float64(msg.Width)*0.25) - w1 - 2)
m.runListStyle = m.runListStyle.Width(int(float64(msg.Width)*0.25) - w1)

if !m.outputVPReady {
m.outputVP = viewport.New(int(float64(msg.Width-w1)*0.6), msg.Height-8)
m.outputVP = viewport.New(msg.Width-m.runListStyle.GetWidth()-2, msg.Height-8)
m.outputVP.HighPerformanceRendering = false
m.outputVPReady = true
} else {
m.outputVP.Width = int(float64(msg.Width-w1) * 0.6)
m.outputVP.Width = msg.Width - m.runListStyle.GetWidth() - 2
m.outputVP.Height = msg.Height - 8
}

Expand Down

0 comments on commit f803488

Please sign in to comment.