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

The usage of faces for filenames is inconsistent. #65

Open
mrcnski opened this issue Jan 10, 2019 · 6 comments
Open

The usage of faces for filenames is inconsistent. #65

mrcnski opened this issue Jan 10, 2019 · 6 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@mrcnski
Copy link
Contributor

mrcnski commented Jan 10, 2019

Hello again, Old One.

The usage of faces for filenames is inconsistent.

For one of my projects, the filenames look like this:

https://www.dropbox.com/s/tayezuw0vlij4uz/Screen%20Shot%202019-01-10%20at%2011.41.52%20PM.png?dl=0

They are fontified using magit-section-heading, which makes the filenames look like section headings, which I don't really want. I would prefer for them to instead use their own face and to inherit from e.g. magit-section-heading (although I would prefer a different face). This way, I can customize the color of the filenames without changing the look of the rest of magit.

For another project, the filenames look like this:

https://www.dropbox.com/s/81seb4ajcygdxxq/Screen%20Shot%202019-01-10%20at%2011.44.59%20PM.png?dl=0

It's a different color! Upon closer inspection, I discovered that magit-filename is used here.

So, two things:

  1. The inconsistency is kind of confusing as the display of magit-todos changes depending on project. I'm guessing it depends on whether there is one file or multiple.
  2. Magit faces are re-used, instead of defining new ones that simply inherit from existing faces.

I suggest fixing number (2) by introducing two new faces. Then someone can change them both to be the same color if they find two different colors to be confusing/inconsistent.

Speak your thoughts, Old One.

@mrcnski
Copy link
Contributor Author

mrcnski commented Jan 10, 2019

To be clear, I understand the intention here: in the first case, the filename is a collapsible section header that behaves like other section headers. However, I don't want it colored like other section headers, personally, so it would be nice to customize it.

In the second case, it's just a filename, so the magit-filename again makes sense. I don't have a problem with this personally, but again, adding the option to change this face without affecting magit would be nice.

@alphapapa
Copy link
Owner

Your analysis is correct. I think the default should remain to apply the heading face to filenames that are headings, but if you want to make that optional, I'll accept a patch.

@alphapapa alphapapa added enhancement New feature or request help wanted Extra attention is needed labels Jan 14, 2019
@alphapapa
Copy link
Owner

Are you still interested in changing this? I'm going to release some new versions soon.

@mrcnski
Copy link
Contributor Author

mrcnski commented May 7, 2019

I don't plan on working on this myself, if that's what you're asking.

@alphapapa
Copy link
Owner

Ok, I'll leave it as help-wanted. Thanks.

@mrcnski
Copy link
Contributor Author

mrcnski commented Nov 16, 2021

So the original screenshots don't work. BWAH! 🤦🏻‍♂️ (I just tried bolding that emoji... didn't worked.) But this package looks better visually than what I remember. There is an improved application of faces here, and so forth and so on. The complaint about inconsistent file faces is still valid, but that's because sometimes filenames are used as section headings, and are correctly fontified as such. Fine!

There still aren't package-specific faces that can be overriden, but I no longer perceive a need for them. The package looks consistent with the rest of magit, to my wandering eye. I suppose that the complaints of the OP (who seems like a cool cat) (that's me btw) are no longer cromulent and may be safely disregarded, at this most critical juncture.

@alphapapa alphapapa added this to the Future milestone Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants