Работа над стилями, работа над модальными окнами, изменение списка приложений, работа с размерами окон

This commit is contained in:
XeRo 2025-12-29 17:46:48 +05:00
parent 5203032b83
commit ada7db46cf
12 changed files with 1161 additions and 130 deletions

View file

@ -1,9 +1,13 @@
package types
import tea "github.com/charmbracelet/bubbletea"
type SelectedAppMsg struct {
Index int
App PackageApplication
}
type BackToListMsg struct{}
type SelectedOptionMsg struct {
FieldIndex int
Value string
@ -27,3 +31,18 @@ type SelectedFileMsg struct {
Filename string
Index int
}
type ShowModalMsg struct {
Type ModalType
Title string
Message string
ModalButtons []ModalButton
OnResult func(result any) tea.Cmd
}
type ModalButton struct {
Text string
Value any
}
type CloseModalMsg struct{}