mirror of
https://github.com/felixangell/phi.git
synced 2024-10-26 09:08:24 +03:00
changed colour encoding to store as unsigned integer rather than signed
this is to reflect the changes to strife
This commit is contained in:
parent
e6234ba706
commit
5da67dbe41
@ -85,27 +85,27 @@ type RenderConfig struct {
|
||||
// the default theme in the EditorConfig
|
||||
// instead.
|
||||
type ThemeConfig struct {
|
||||
Background int32
|
||||
Foreground int32
|
||||
Cursor int32
|
||||
Cursor_Invert int32
|
||||
Background uint32
|
||||
Foreground uint32
|
||||
Cursor uint32
|
||||
Cursor_Invert uint32
|
||||
Palette PaletteConfig
|
||||
Gutter_Background int32
|
||||
Gutter_Foreground int32
|
||||
Gutter_Background uint32
|
||||
Gutter_Foreground uint32
|
||||
}
|
||||
|
||||
type PaletteConfig struct {
|
||||
Background int32
|
||||
Foreground int32
|
||||
Cursor int32
|
||||
Outline int32
|
||||
Background uint32
|
||||
Foreground uint32
|
||||
Cursor uint32
|
||||
Outline uint32
|
||||
Render_Shadow bool
|
||||
Shadow_Color int32
|
||||
Shadow_Color uint32
|
||||
Suggestion struct {
|
||||
Background int32
|
||||
Foreground int32
|
||||
Selected_Background int32
|
||||
Selected_Foreground int32
|
||||
Background uint32
|
||||
Foreground uint32
|
||||
Selected_Background uint32
|
||||
Selected_Foreground uint32
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
DEFAULT_SCROLL_AMOUNT = 10
|
||||
DEFAULT_SCROLL_AMOUNT = 50
|
||||
)
|
||||
|
||||
// TODO move into config
|
||||
@ -115,12 +115,12 @@ func newAutoCompleteBox() *AutoCompleteBox {
|
||||
}
|
||||
|
||||
type BufferConfig struct {
|
||||
background int32
|
||||
foreground int32
|
||||
cursor int32
|
||||
cursorInvert int32
|
||||
lineNumBackground int32
|
||||
lineNumForeground int32
|
||||
background uint32
|
||||
foreground uint32
|
||||
cursor uint32
|
||||
cursorInvert uint32
|
||||
lineNumBackground uint32
|
||||
lineNumForeground uint32
|
||||
font *strife.Font
|
||||
}
|
||||
|
||||
@ -1367,8 +1367,8 @@ func (b *Buffer) renderAt(ctx *strife.Renderer, rx int, ry int) {
|
||||
characterColor := b.buffOpts.foreground
|
||||
|
||||
if len(colorStack) > 0 {
|
||||
var a int32
|
||||
a, colorStack = int32(colorStack[len(colorStack)-1]), colorStack[:len(colorStack)-1]
|
||||
var a uint32
|
||||
a, colorStack = uint32(colorStack[len(colorStack)-1]), colorStack[:len(colorStack)-1]
|
||||
characterColor = a
|
||||
}
|
||||
|
||||
|
@ -256,7 +256,7 @@ func (n *View) OnUpdate() bool {
|
||||
shortcutName = "control"
|
||||
}
|
||||
} else {
|
||||
source = cfg.Shortcuts.Supers
|
||||
source = cfg.Shortcuts.Controls
|
||||
}
|
||||
|
||||
r := rune(strife.PopKey())
|
||||
|
Loading…
Reference in New Issue
Block a user