1 parent
211a5e0b59
commit
e7ef2e600b
6 files changed
+281
-145
No files matched your search
+8
-17
@@ -8847,6 +8847,7 @@ void handleFilesReturn(bool shift)
|
||||
}
|
||||
|
||||
#include "files_smb.inl"
|
||||
#include "files_path_bar.inl"
|
||||
#include "files_path_navigation.inl"
|
||||
|
||||
LRESULT CALLBACK filesWindow(HWND window, UINT message, WPARAM wp, LPARAM lp)
|
||||
@@ -9260,22 +9261,11 @@ LRESULT CALLBACK filesWindow(HWND window, UINT message, WPARAM wp, LPARAM lp)
|
||||
{
|
||||
auto bounds=item.rcItem;
|
||||
const auto &panel=panels[item.CtlID-142];
|
||||
const auto path=panelCaption(panel);
|
||||
const bool highlighted=static_cast<int>(item.CtlID)-142==active;
|
||||
const bool navigable=pathNavigationAvailable(panel);
|
||||
if(lavenderFiles())
|
||||
{
|
||||
const LavenderMetrics metrics(window);
|
||||
const bool highlighted=static_cast<int>(item.CtlID)-142==active;
|
||||
lavender::fill(item.hDC,bounds,lavender::surface);
|
||||
lavender::rounded(item.hDC,bounds,metrics.px(7),lavender::path,
|
||||
highlighted?lavender::activeEdge:lavender::line);
|
||||
if(pathNavigationAvailable(panel)) paintPanelPath(item.hDC,bounds,panel,highlighted);
|
||||
else
|
||||
{
|
||||
paintLavenderFileIcon(item.hDC,bounds,metrics,true);
|
||||
bounds.left+=metrics.px(30);
|
||||
bounds.right-=metrics.px(9);
|
||||
lavender::text(item.hDC,bounds,path.c_str(),lavender::ink,DT_LEFT,DT_PATH_ELLIPSIS);
|
||||
}
|
||||
paintLavenderPanelPath(item,panel,navigable,highlighted);
|
||||
return TRUE;
|
||||
}
|
||||
FillRect(item.hDC,&bounds,blue);
|
||||
@@ -9298,12 +9288,12 @@ LRESULT CALLBACK filesWindow(HWND window, UINT message, WPARAM wp, LPARAM lp)
|
||||
FillRect(item.hDC,&column,lineBrush);
|
||||
}
|
||||
}
|
||||
const bool highlighted=static_cast<int>(item.CtlID)-142==active;
|
||||
if(pathNavigationAvailable(panel))
|
||||
if(navigable)
|
||||
{
|
||||
paintPanelPath(item.hDC,bounds,panel,highlighted);
|
||||
paintPanelPath(item.hDC,item.hwndItem,bounds,panel,highlighted);
|
||||
return TRUE;
|
||||
}
|
||||
const auto path=panelCaption(panel);
|
||||
if(path.empty()) return TRUE;
|
||||
const int saved=SaveDC(item.hDC);
|
||||
SelectObject(item.hDC,mono);
|
||||
@@ -10251,6 +10241,7 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE, PWSTR, int show)
|
||||
}
|
||||
for(auto font:fileStyleFonts) if(font) DeleteObject(font);
|
||||
if(lavender::font) DeleteObject(lavender::font);
|
||||
if(lavender::emphasis) DeleteObject(lavender::emphasis);
|
||||
DeleteObject(mono);
|
||||
DeleteObject(terminalFont);
|
||||
DeleteObject(blue);
|
||||
|
||||
Reference in new issue
Block a user