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

Please document colors.tdesktop-theme better. #2809

Closed
jjvvx opened this issue Jan 12, 2017 · 14 comments
Closed

Please document colors.tdesktop-theme better. #2809

jjvvx opened this issue Jan 12, 2017 · 14 comments

Comments

@jjvvx
Copy link

jjvvx commented Jan 12, 2017

I can't tell you how many things I've come across programs that have such flexible styling options but just document said feature poorly if at all. It would really be nice to get a small wiki page or something that broke down what each color option affected/did.

@auchri
Copy link
Contributor

auchri commented Jan 12, 2017

You can edit the wiki or make a PR

@jjvvx
Copy link
Author

jjvvx commented Jan 12, 2017

The problem is I shouldn't have to. They made the feature and it's their job as maintainers of an application to properly document it since they are the ones most familiar with the software under the hood.

@danielytics
Copy link

How can @joaquin-v edit the wiki or make a PR if (s)he doesn't understand the styling options because... they're not properly documented? We can improve documentation if we understand what its documenting, but if not, then the authors have to do so.

@john-preston
Copy link
Member

@gudvinr Nice looking one here:

If you are trying to create a new theme, take a look to SolidDark theme: https://github.com/MasterGroosha/telegram-soliddark-theme/blob/master/colors.tdesktop-theme

It's a nice example with:

— Documented attributes.
— Separated by sections.
— Global color variables.

@ADTC
Copy link

ADTC commented Jan 20, 2017

Created Wiki (blank at this moment): https://github.com/telegramdesktop/tdesktop/wiki/Theme-Reference

Thanks for the reference @john-preston I can use it as a starting point.

@dulnan
Copy link

dulnan commented Jan 23, 2017

Not sure if this has been done before, but here's a theme with random, unique colors (which are also as far apart from each other as possible). Apply it, color pick something and then search for that HEX value to see what attribute matches.

https://gist.github.com/dulnan/323b4d14f15c295c6d92612624fb971e

@ADTC
Copy link

ADTC commented Jan 25, 2017

@john-preston I just made the table in the wiki using your link as a base. The documentation is lacking though. Also, what I plan to add in the Illustration column is a tiny screenshot showing exactly what component that color will apply to. But I think it may not be necessary if the Description column can pinpoint it using words.

@dulnan Is every color in the 391 chosen colors shown somewhere in the screenshot?

@dulnan
Copy link

dulnan commented Jan 25, 2017

@ADTC I did not verify if all theme attributes are actually being used. There's a lot of attributes that are so super specific, I was not able to find out where exactly that color is being used in the application. The "theme preview" screenshot covers only a handful of the colors.

@ADTC
Copy link

ADTC commented Feb 1, 2017

If you can help fill out the missing descriptions that will be great. I'll work on the screenshots when I get some free time (my life is often quite busy). I need to redo some screenshots as I realized the identifier color was mistakenly used for multiple elements (due to aliasing).

@MasterGroosha
Copy link

I think this commit (ed4b9bc) will satisfy you :)
Now all strings are commented.

@ADTC
Copy link

ADTC commented Feb 2, 2017

Thank you, I have updated to the official descriptions. The following do not have any description though:

  • historySystemBg
  • historySystemBgSelected
  • historySystemFg
  • searchedBarBorder

@MasterGroosha
Copy link

These strings have disappeared from colors file.

@auchri auchri closed this as completed Feb 2, 2017
@ADTC
Copy link

ADTC commented Feb 4, 2017

Yes, apparently so. Does that mean they are no longer used? Anyway I have removed them.

PS: For anyone reading to the end, this is now documented in the wiki: https://github.com/telegramdesktop/tdesktop/wiki/Theme-Reference

@github-actions
Copy link

github-actions bot commented Mar 9, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants