digitalmars.D.learn - DlangIDE Themes
- Chris (4/4) May 11 2016 Is there a way I can add my own themes? I've created a theme file
- thedeemon (3/7) May 11 2016 Indeed they are, just grep for "ide_theme_dark" and you'll find
- Chris (6/14) May 12 2016 They shouldn't be hardwired. Best would be to load them
- thedeemon (6/11) May 12 2016 Don't forget that contents of all those files in resources.list
- Chris (9/20) May 12 2016 Sure, but changing `resources.list` is trivial and can be added
- Vadim Lopatin (13/37) May 12 2016 Hello,
- Chris (2/15) May 12 2016 I've tried that too, but changes I make are ignored.
Is there a way I can add my own themes? I've created a theme file and added it to views/resources.list However, it doesn't show up. "Default" and "Dark" seem to be hardwired somewhere in the source code.
May 11 2016
On Wednesday, 11 May 2016 at 12:55:13 UTC, Chris wrote:Is there a way I can add my own themes? I've created a theme file and added it to views/resources.list However, it doesn't show up. "Default" and "Dark" seem to be hardwired somewhere in the source code.Indeed they are, just grep for "ide_theme_dark" and you'll find those two places (settings.d, idesettings.d).
May 11 2016
On Thursday, 12 May 2016 at 03:01:02 UTC, thedeemon wrote:On Wednesday, 11 May 2016 at 12:55:13 UTC, Chris wrote:They shouldn't be hardwired. Best would be to load them dynamically with their respective names encoded in the xml file. In this way people could add their own themes as they see fit. I wouldn't mind creating themes and adding them to DlangIDE as a humble contribution.Is there a way I can add my own themes? I've created a theme file and added it to views/resources.list However, it doesn't show up. "Default" and "Dark" seem to be hardwired somewhere in the source code.Indeed they are, just grep for "ide_theme_dark" and you'll find those two places (settings.d, idesettings.d).
May 12 2016
On Thursday, 12 May 2016 at 09:17:24 UTC, Chris wrote:They shouldn't be hardwired. Best would be to load them dynamically with their respective names encoded in the xml file. In this way people could add their own themes as they see fit. I wouldn't mind creating themes and adding them to DlangIDE as a humble contribution.Don't forget that contents of all those files in resources.list is also "hardwired" into the executable, so there's not much difference between mentioning something in such list file and in the source code. Of course, dynamic loading would be a nice thing to do, in addition to what there is now.
May 12 2016
On Thursday, 12 May 2016 at 09:51:18 UTC, thedeemon wrote:On Thursday, 12 May 2016 at 09:17:24 UTC, Chris wrote:Sure, but changing `resources.list` is trivial and can be added to the docs like so "Add the path to your theme file to `resources.list` and restart DlangIDE." It has to be hardwired somewhere, but it shouldn't be the themes. Other editors/IDE's allow you to load your own themes. This is important, because apart from aesthetics, some people might find certain themes easier on the eye than others, e.g. color blind people or people with some sort of visual impairment.They shouldn't be hardwired. Best would be to load them dynamically with their respective names encoded in the xml file. In this way people could add their own themes as they see fit. I wouldn't mind creating themes and adding them to DlangIDE as a humble contribution.Don't forget that contents of all those files in resources.list is also "hardwired" into the executable, so there's not much difference between mentioning something in such list file and in the source code. Of course, dynamic loading would be a nice thing to do, in addition to what there is now.
May 12 2016
On Thursday, 12 May 2016 at 09:57:42 UTC, Chris wrote:On Thursday, 12 May 2016 at 09:51:18 UTC, thedeemon wrote:Hello, External themes support is planned. It is not a hard task. Btw, try to copy your resource files (res directory) to the same place dlangui executable (e.g. dlangide) is located. Resources from this directory must be accessible from application. The only problem should be list of themes in UI settings. AFAIR, resources from directory should have higher priority than embedded ones. So for testing, you can rename theme to standard name. Best regards, VadimOn Thursday, 12 May 2016 at 09:17:24 UTC, Chris wrote:Sure, but changing `resources.list` is trivial and can be added to the docs like so "Add the path to your theme file to `resources.list` and restart DlangIDE." It has to be hardwired somewhere, but it shouldn't be the themes. Other editors/IDE's allow you to load your own themes. This is important, because apart from aesthetics, some people might find certain themes easier on the eye than others, e.g. color blind people or people with some sort of visual impairment.They shouldn't be hardwired. Best would be to load them dynamically with their respective names encoded in the xml file. In this way people could add their own themes as they see fit. I wouldn't mind creating themes and adding them to DlangIDE as a humble contribution.Don't forget that contents of all those files in resources.list is also "hardwired" into the executable, so there's not much difference between mentioning something in such list file and in the source code. Of course, dynamic loading would be a nice thing to do, in addition to what there is now.
May 12 2016
On Thursday, 12 May 2016 at 15:29:17 UTC, Vadim Lopatin wrote:Hello, External themes support is planned. It is not a hard task. Btw, try to copy your resource files (res directory) to the same place dlangui executable (e.g. dlangide) is located. Resources from this directory must be accessible from application. The only problem should be list of themes in UI settings. AFAIR, resources from directory should have higher priority than embedded ones. So for testing, you can rename theme to standard name. Best regards, VadimI've tried that too, but changes I make are ignored.
May 12 2016