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

Color themes not working #3461

Open
ManuGraiph opened this issue May 17, 2024 · 17 comments
Open

Color themes not working #3461

ManuGraiph opened this issue May 17, 2024 · 17 comments
Labels
eval:incomplete topic:themes Issues related to color themes or colorized output

Comments

@ManuGraiph
Copy link

Hi,

For some reason, i can't change any color output either in my taskwarrior or taskwarrior-tui gui when sourcing any theme file in the taskrc. I'm not sure if i'm missing an option, other than the include file for the theme.

I'm on arch, my terminal is wezterm and my term is xterm-256color.

Any idea what could it be?

@djmitche
Copy link
Collaborator

Are you just seeing plain text? @adriangalilea has been working with themes and might be able to help debug.

@ManuGraiph
Copy link
Author

Yep, the colors are always the same, regardless of what "theme" i select. If i copy the color lines in the taskrc, it's the same.

@adriangalilea
Copy link
Contributor

https://gist.github.com/adriangalilea/c0756755d364e87ccca186b1e0361d3d

This is the theme I came up with, that I save on ~/.task/themes and then on ~/.taskrc I add: include ~/.task/themes/violet.theme

Not sure what problem are you experiencing, but you can try task color command to debug if the program/terminal is capable of producing the colors and determine if it's a config issue or lower level.

@celadevra
Copy link

Yep, the colors are always the same, regardless of what "theme" i select. If i copy the color lines in the taskrc, it's the same.

In my case, I put my taskrc under ~/.config/task, but forgot to delete ~/.taskrc. The latter has higher precedence when TW looks for its config.

@djmitche
Copy link
Collaborator

You can verify that with task diag, which will show the config file location.

@djmitche djmitche added the type:question Issue was used to request information. Note that there is also discussions tab! label May 27, 2024
@djmitche
Copy link
Collaborator

Hm, this is the second report of task color configuration not "taking", so perhaps there's something funny going on here. If the correct config file is, indeed, in use, then perhaps this has to do with ordering of config within the file?

@djmitche djmitche added topic:themes Issues related to color themes or colorized output eval:incomplete and removed type:question Issue was used to request information. Note that there is also discussions tab! labels May 27, 2024
@Shadabdullah
Copy link

Hi,

For some reason, i can't change any color output either in my taskwarrior or taskwarrior-tui gui when sourcing any theme file in the taskrc. I'm not sure if i'm missing an option, other than the include file for the theme.

I'm on arch, my terminal is wezterm and my term is xterm-256color.

Any idea what could it be?

I am facing same issues ,

@djmitche
Copy link
Collaborator

Does task show | grep ^color show the expected colors?

@ziofil
Copy link

ziofil commented Sep 13, 2024

I have the same issue. Here's the output of the command you just suggested:

Screenshot 2024-09-13 at 5 25 28 PM

@djmitche
Copy link
Collaborator

Are those different from the colors in your theme? If so, where does task diag say it is reading the configuration from?

@ziofil
Copy link

ziofil commented Sep 17, 2024

No, they are always the same color regardless of the color theme in the settings. It also looks like taskrc is found and accessed correctly.

Screenshot 2024-09-17 at 8 36 49 AM

@djmitche
Copy link
Collaborator

Thanks! So it seems like there's something related to the include in /Users/fliippo/.taskrc. Try changing that to a path that doesn't exist, and see if you get an error message?

@ziofil
Copy link

ziofil commented Sep 25, 2024

Not sure I understand: should I change the path of the data/hooks inside taskrc? Or should I temporarily move .taskrc elsewhere? This is my current taskrc (I have moved it to the XDG directory as suggested, but nothing has changed, btw):

# [Created by task 3.1.0 9/13/2024 08:07:20]
# data.location=/Users/filippo/.task
news.version=3.1.0

# To use the default location of the XDG directories,
# move this configuration file from ~/.taskrc to ~/.config/task/taskrc and update location config as follows:

data.location=~/.local/share/task
hooks.location=~/.config/task/hooks

# Color theme (uncomment one to use)
#include light-16.theme
#include light-256.theme
#include dark-16.theme
#include dark-256.theme
include dark-red-256.theme
#include dark-green-256.theme
#include dark-blue-256.theme
#include dark-violets-256.theme
#include dark-yellow-green.theme
#include dark-gray-256.theme
#include dark-gray-blue-256.theme
#include solarized-dark-256.theme
#include solarized-light-256.theme
#include no-color.theme

If I move taskrc I get this error message:

task show
A configuration file could not be found in /Users/filippo

Would you like a sample /Users/filippo/.taskrc created, so Taskwarrior can proceed? (yes/no) n
Cannot proceed without rc file.

@djmitche
Copy link
Collaborator

No, I meant to change

include dark-red-256.theme

to something like

include no-such-file.theme

and see if you get an error message.

@ziofil
Copy link

ziofil commented Oct 30, 2024

Sorry for replying so late. Yes I do get an error:

[taskwarrior-tui error]: Unable to run `task show`.

Could not find file in CWD, directory of config file or search paths 'no-such-file.theme'.

Please check your configuration or open a issue on github.

If you need additional help, please report as a github issue on https://github.com/kdheepak/taskwarrior-tui

@djmitche
Copy link
Collaborator

I guess that error is from tui, and I don't really know how that tool works. But I suppose task would say the same?

I'm pretty stumped, then. I don't know how Taskwarrior could be reading most of the settings in a config file but not all of them. I guess I'd suggest making one last check of .taskrc to see if there are any includes that aren't commented out or anything else that might be overriding the color scheme.

@djmitche
Copy link
Collaborator

I suspect this is a taskwarrior-tui bug. Can you file it there, referencing this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eval:incomplete topic:themes Issues related to color themes or colorized output
Projects
None yet
Development

No branches or pull requests

6 participants