Skip to content

Commit

Permalink
Update colors in tree widget to match theme (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
scudette committed Nov 12, 2022
1 parent ea39a64 commit 22c747b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions actions/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ func (self UpdateEventTable) Run(

err = update_writeback(config_obj, arg)
if err != nil {
responder.RaiseError(ctx, fmt.Sprintf(
responder.RaiseError(new_ctx, fmt.Sprintf(
"Unable to write events to writeback: %v", err))
return
}

responder.Return(ctx)
responder.Return(new_ctx)
}

func update_writeback(
Expand Down
8 changes: 8 additions & 0 deletions gui/velociraptor/src/components/utils/tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ export const getTheme = (theme)=> {
let result = theme_template();

switch (theme) {
case "veloci-light":
result.tree.node.activeLink.background = '#d5efde';
return result;

case "pink-light":
result.tree.node.activeLink.background = '#ffeffd';
return result;

case "github-dimmed-dark":
case "veloci-dark":
case "coolgray-dark":
Expand Down
2 changes: 1 addition & 1 deletion gui/velociraptor/src/themes/veloci-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ body.veloci-light {

.veloci-light .btn-default.active {
box-shadow: none;
color: var(--color-sidebar-background);
color: var(--color-accent-75);
}

.veloci-light .btn-default:hover {
Expand Down

0 comments on commit 22c747b

Please sign in to comment.