Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update colors in tree widget to match theme #2243

Merged
merged 1 commit into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update colors in tree widget to match theme
  • Loading branch information
scudette committed Nov 12, 2022
commit 4432682f45c64c69af89ab339f00d2296acdbe3f
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