Skip to content

Commit

Permalink
fix: platform style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgillich committed Mar 2, 2024
1 parent 7c252b1 commit 171636f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ levelbar block.lb-normal {
/* Replace fixed background color with var */
textview.sourceview>text,
textview.sourceview>border>gutter {
background-color: @view_bg_color;
background-color: @window_bg_color;
}

/* Windows defaults to the awful Courier New monospace font */
Expand Down
2 changes: 1 addition & 1 deletion internal/ui/detail_view.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type DetailView struct {

func NewDetailView(ctx context.Context, behavior *behavior.DetailBehavior) *DetailView {
content := gtk.NewBox(gtk.OrientationVertical, 0)
content.AddCSSClass("view")
content.AddCSSClass("background")
d := DetailView{
NavigationPage: adw.NewNavigationPage(content, "Object"),
prefPage: adw.NewPreferencesPage(),
Expand Down
1 change: 0 additions & 1 deletion internal/ui/editor_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func NewEditorWindow(ctx context.Context, resource *metav1.APIResource, object c
ctx = ctxt.With[*gtk.Window](ctx, w.Window)

content := gtk.NewBox(gtk.OrientationVertical, 0)
content.AddCSSClass("view")

toast := adw.NewToastOverlay()
toast.SetChild(content)
Expand Down
2 changes: 1 addition & 1 deletion widget/log_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ type LogPage struct {

func NewLogPage(ctx context.Context, cluster *api.Cluster, pod *corev1.Pod, container string) *LogPage {
box := gtk.NewBox(gtk.OrientationVertical, 0)
box.AddCSSClass("view")
p := LogPage{NavigationPage: adw.NewNavigationPage(box, container)}

header := adw.NewHeaderBar()
header.SetShowStartTitleButtons(false)
header.SetShowEndTitleButtons(runtime.GOOS != "windows")
header.AddCSSClass("flat")
box.Append(header)
Expand Down
2 changes: 1 addition & 1 deletion widget/terminal_page_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type TerminalPage struct {

func NewTerminalPage(ctx context.Context, cluster *api.Cluster, pod *corev1.Pod, container string) (w *TerminalPage) {
box := gtk.NewBox(gtk.OrientationVertical, 0)
box.AddCSSClass("view")
nav := adw.NewNavigationPage(box, container)
w = &TerminalPage{NavigationPage: nav}

Expand All @@ -37,6 +36,7 @@ func NewTerminalPage(ctx context.Context, cluster *api.Cluster, pod *corev1.Pod,

header := adw.NewHeaderBar()
header.AddCSSClass("flat")
header.SetShowStartTitleButtons(false)
box.Append(header)

terminal := vte.NewTerminal()
Expand Down

0 comments on commit 171636f

Please sign in to comment.