Page 1 of 1

Themed current path panel

Posted: 2016-06-12, 21:46 UTC
by Lefteous

Posted: 2016-06-13, 17:18 UTC
by ghisler(Author)
Hmm, what theme part should I use?
https://msdn.microsoft.com/de-de/bb773210

Posted: 2016-06-13, 21:27 UTC
by Lefteous
I guess it's LVP_LISTITEM part and LISS_SELECTED state.

Posted: 2016-06-15, 21:27 UTC
by ghisler(Author)
Hmm, that's an item in a list view, not a header?

Posted: 2016-06-16, 21:38 UTC
by Lefteous
2ghisler(Author)
Yes it was really just a fancy idea. Sometimes such ideas lead to better ideas...
The active path is really a weird control. It's a mix of a document title bar and an edit field. So it's really difficult to find the right theming here. Did you try the 'window parts'? I'm not sure sure though how this would work with the breadcrumbs.

Code: Select all

//
//  WINDOWSTYLE class parts and states 
//
#define VSCLASS_WINDOWSTYLE	L"WINDOWSTYLE"
#define VSCLASS_WINDOW	L"WINDOW"

enum WINDOWPARTS {
	WP_CAPTION = 1,
	WP_SMALLCAPTION = 2,
	WP_MINCAPTION = 3,
	WP_SMALLMINCAPTION = 4,
	WP_MAXCAPTION = 5,
	WP_SMALLMAXCAPTION = 6,
	WP_FRAMELEFT = 7,
	WP_FRAMERIGHT = 8,
	WP_FRAMEBOTTOM = 9,
	WP_SMALLFRAMELEFT = 10,
	WP_SMALLFRAMERIGHT = 11,
	WP_SMALLFRAMEBOTTOM = 12,
	WP_SYSBUTTON = 13,
	WP_MDISYSBUTTON = 14,
	WP_MINBUTTON = 15,
	WP_MDIMINBUTTON = 16,
	WP_MAXBUTTON = 17,
	WP_CLOSEBUTTON = 18,
	WP_SMALLCLOSEBUTTON = 19,
	WP_MDICLOSEBUTTON = 20,
	WP_RESTOREBUTTON = 21,
	WP_MDIRESTOREBUTTON = 22,
	WP_HELPBUTTON = 23,
	WP_MDIHELPBUTTON = 24,
	WP_HORZSCROLL = 25,
	WP_HORZTHUMB = 26,
	WP_VERTSCROLL = 27,
	WP_VERTTHUMB = 28,
	WP_DIALOG = 29,
	WP_CAPTIONSIZINGTEMPLATE = 30,
	WP_SMALLCAPTIONSIZINGTEMPLATE = 31,
	WP_FRAMELEFTSIZINGTEMPLATE = 32,
	WP_SMALLFRAMELEFTSIZINGTEMPLATE = 33,
	WP_FRAMERIGHTSIZINGTEMPLATE = 34,
	WP_SMALLFRAMERIGHTSIZINGTEMPLATE = 35,
	WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
	WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
	WP_FRAME = 38,
};

#define WINDOWSTYLEPARTS WINDOWPARTS;

enum FRAMESTATES {
	FS_ACTIVE = 1,
	FS_INACTIVE = 2,
};

enum CAPTIONSTATES {
	CS_ACTIVE = 1,
	CS_INACTIVE = 2,
	CS_DISABLED = 3,
};

enum MAXCAPTIONSTATES {
	MXCS_ACTIVE = 1,
	MXCS_INACTIVE = 2,
	MXCS_DISABLED = 3,
};

enum MINCAPTIONSTATES {
	MNCS_ACTIVE = 1,
	MNCS_INACTIVE = 2,
	MNCS_DISABLED = 3,
};

enum HORZSCROLLSTATES {
	HSS_NORMAL = 1,
	HSS_HOT = 2,
	HSS_PUSHED = 3,
	HSS_DISABLED = 4,
};

enum HORZTHUMBSTATES {
	HTS_NORMAL = 1,
	HTS_HOT = 2,
	HTS_PUSHED = 3,
	HTS_DISABLED = 4,
};

enum VERTSCROLLSTATES {
	VSS_NORMAL = 1,
	VSS_HOT = 2,
	VSS_PUSHED = 3,
	VSS_DISABLED = 4,
};

enum VERTTHUMBSTATES {
	VTS_NORMAL = 1,
	VTS_HOT = 2,
	VTS_PUSHED = 3,
	VTS_DISABLED = 4,
};

enum SYSBUTTONSTATES {
	SBS_NORMAL = 1,
	SBS_HOT = 2,
	SBS_PUSHED = 3,
	SBS_DISABLED = 4,
};

enum MINBUTTONSTATES {
	MINBS_NORMAL = 1,
	MINBS_HOT = 2,
	MINBS_PUSHED = 3,
	MINBS_DISABLED = 4,
};

enum MAXBUTTONSTATES {
	MAXBS_NORMAL = 1,
	MAXBS_HOT = 2,
	MAXBS_PUSHED = 3,
	MAXBS_DISABLED = 4,
};

enum RESTOREBUTTONSTATES {
	RBS_NORMAL = 1,
	RBS_HOT = 2,
	RBS_PUSHED = 3,
	RBS_DISABLED = 4,
};

enum HELPBUTTONSTATES {
	HBS_NORMAL = 1,
	HBS_HOT = 2,
	HBS_PUSHED = 3,
	HBS_DISABLED = 4,
};

enum CLOSEBUTTONSTATES {
	CBS_NORMAL = 1,
	CBS_HOT = 2,
	CBS_PUSHED = 3,
	CBS_DISABLED = 4,
};

Posted: 2016-06-17, 15:37 UTC
by khagaroth
I would actually prefer if it had the same text/background colors as the file list with the underline using the mark color or underline replaced with text highlight (since the underline clashes with the dropdown).

Posted: 2016-06-17, 15:39 UTC
by Lefteous
2khagaroth
Could you visualize your suggestion?

Posted: 2016-06-17, 16:05 UTC
by khagaroth
Well, look at your file list in TC and the colors selection in configuration. That's what I meant.

Posted: 2016-06-17, 16:34 UTC
by Lefteous
2khagaroth
I don't think displaying it the same way would be a good idea. This would look like an additional item in the list not like the current path.

Posted: 2016-06-19, 09:38 UTC
by Lefteous
From the list of parts and states posted above the following seems to be the title bar themes:

WP_MAXCAPTION,
MXCS_ACTIVE and MXCS_INACTIVE

http://lefteous.totalcmd.net/tc/ideas/themed_title_bar.png

Posted: 2016-06-19, 14:17 UTC
by ghisler(Author)
One problem is that on Windows 10, active and inactive title bar are both white...

Posted: 2016-06-19, 19:56 UTC
by petermad
on Windows 10, active and inactive title bar are both white...
In Windows 10 you can set one color for Start, taskbar, action center and title bar (same color), so the title bar isn't necessarily white.

Posted: 2016-06-19, 20:40 UTC
by Lefteous
On my Windows 10 Installation the Default theme uses blue for the active titlebar and white for inactive Windows. For some windows it's always grey - very weird.

Posted: 2016-06-19, 21:01 UTC
by Dalai
IIRC the color of the title bars depends on a system setting that was introduced with v1511 (November 2015), and is derived from the user's wallpaper (or perhaps background color). This also applies to some colors of the start menu.

Regards
Dalai

Posted: 2016-06-20, 14:31 UTC
by petermad
Windows 10: Settings -> Personalization -> Colors -> Show color on Start, taskbar, action center and title bar.

The title bar color only seems to apply for traditional Windows Programs, not for Metro Apps