Files
gorc/ui/mainscreen/styles.go
T

114 lines
2.9 KiB
Go
Raw Normal View History

// gorc project
2022-01-24 04:24:58 +02:00
// Copyright (C) 2022 IllusionMan1212
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, see https://www.gnu.org/licenses.
package mainscreen
import (
"github.com/charmbracelet/lipgloss"
"github.com/illusionman1212/gorc/ui"
)
var (
InputboxStyle = lipgloss.NewStyle().
Border(lipgloss.NormalBorder(), true).
Padding(0, 1).
Width(ui.MainStyle.GetWidth()).
BorderForeground(ui.AccentColor)
MessagesStyle = lipgloss.NewStyle().
2022-01-20 05:08:39 +02:00
Border(lipgloss.NormalBorder(), false, true, true, true).
2022-01-09 04:30:22 +02:00
Width(ui.MainStyle.GetWidth() * 8 / 10).
BorderForeground(ui.PrimaryColor)
2022-01-09 04:30:22 +02:00
SidePanelStyle = lipgloss.NewStyle().
Border(lipgloss.NormalBorder(), true).
Width(ui.MainStyle.GetWidth() * 2 / 10).
BorderForeground(ui.PrimaryColor)
2022-01-20 05:08:39 +02:00
activeTabBorder = lipgloss.Border{
Top: "─",
Bottom: " ",
Left: "│",
Right: "│",
TopLeft: "╭",
TopRight: "╮",
BottomLeft: "┘",
BottomRight: "└",
}
2022-01-20 05:08:39 +02:00
tabBorder = lipgloss.Border{
Top: "─",
Bottom: "─",
Left: "│",
Right: "│",
TopLeft: "╭",
TopRight: "╮",
BottomLeft: "┴",
BottomRight: "┴",
}
leftArrowBorder = lipgloss.Border{
Top: "─",
Bottom: " ",
Left: "│",
Right: "│",
TopLeft: "╭",
TopRight: "┐",
BottomLeft: "│",
BottomRight: "└",
}
rightArrowBorder = lipgloss.Border{
Top: "─",
Bottom: " ",
Left: "│",
Right: "│",
TopLeft: "┌",
TopRight: "╮",
BottomLeft: "┘",
BottomRight: "│",
}
tab = lipgloss.NewStyle().
Border(tabBorder, true).
Foreground(ui.PrimaryColor).
2022-01-20 05:08:39 +02:00
Padding(0, 1)
activeTab = tab.Copy().
Border(activeTabBorder, true).
BorderForeground(ui.AccentColor).
Foreground(ui.AccentColor).
2022-01-20 05:08:39 +02:00
Italic(true).
Bold(true)
leftArrowDim = tab.Copy().
Border(leftArrowBorder, true).
BorderForeground(ui.PrimaryColor).
Foreground(ui.DisabledColor)
2022-01-20 05:08:39 +02:00
rightArrowDim = tab.Copy().
Border(rightArrowBorder, true).
BorderForeground(ui.PrimaryColor).
Foreground(ui.DisabledColor)
2022-01-20 05:08:39 +02:00
leftArrowLit = tab.Copy().
Border(leftArrowBorder, true).
Foreground(ui.PrimaryColor)
2022-01-20 05:08:39 +02:00
rightArrowLit = tab.Copy().
Border(rightArrowBorder, true).
Foreground(ui.PrimaryColor)
2022-01-20 05:08:39 +02:00
tabLine = lipgloss.NewStyle().
Foreground(ui.PrimaryColor)
)