From a1a38c20af5e2417ddf478ef8b3ec57306d2f95b Mon Sep 17 00:00:00 2001 From: luk3yx Date: Sat, 22 Apr 2023 16:36:28 +1200 Subject: [PATCH] Use separate top/bottom textures for chat scrollbar --- src/gui/guiChatConsole.cpp | 4 +++- .../base/pack/gui/scrollbar_slider_bottom.png | Bin 0 -> 247 bytes textures/base/pack/gui/scrollbar_slider_long.png | Bin 425 -> 0 bytes .../base/pack/gui/scrollbar_slider_middle.png | Bin 0 -> 120 bytes textures/base/pack/gui/scrollbar_slider_top.png | Bin 0 -> 254 bytes 5 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 textures/base/pack/gui/scrollbar_slider_bottom.png delete mode 100644 textures/base/pack/gui/scrollbar_slider_long.png create mode 100644 textures/base/pack/gui/scrollbar_slider_middle.png create mode 100644 textures/base/pack/gui/scrollbar_slider_top.png diff --git a/src/gui/guiChatConsole.cpp b/src/gui/guiChatConsole.cpp index 27617d5a8..9c83fa870 100644 --- a/src/gui/guiChatConsole.cpp +++ b/src/gui/guiChatConsole.cpp @@ -1031,9 +1031,11 @@ void GUIChatConsole::createVScrollBar() ITextureSource *tsrc = m_client->getTextureSource(); m_vscrollbar->setTextures({ tsrc->getTexture("gui/scrollbar_bg.png"), - tsrc->getTexture("gui/scrollbar_slider_long.png"), + tsrc->getTexture("gui/scrollbar_slider_middle.png"), tsrc->getTexture("gui/scrollbar_up.png"), tsrc->getTexture("gui/scrollbar_down.png"), + tsrc->getTexture("gui/scrollbar_slider_top.png"), + tsrc->getTexture("gui/scrollbar_slider_bottom.png"), }); addChild(m_vscrollbar); diff --git a/textures/base/pack/gui/scrollbar_slider_bottom.png b/textures/base/pack/gui/scrollbar_slider_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..3254e44352a15d10a80ea6d37fe96262b84eaa18 GIT binary patch literal 247 zcmeAS@N?(olHy`uVBq!ia0vp^4nVBH!VDw>HYaZfQn~>?A+ENiNBj#?frmdT6;6CmXj;1l9%TYBXG|Nplhem`>I z)5e4EmTY@HW6g^ROP_Vjf2t8O#lP@$)2zp}(;n5&c;uM6uYLa0ysmpwSG|z6$%?7D zVj8(tFMfrwe$gqQ(Mp~!jv*C{Z*Pb9wHOGnJ?ymLvApwtRkrf1xjq4#H@*`6=l_YZ z>bvl*_x!cTFJ!*3nbI>;(K^lPTqeWu$D)SPhKlc}He5(`y_e5?qjMXBpE~24GuxQf z)mO}u4Q6wiKVM%sm;KD_c;Qjd diff --git a/textures/base/pack/gui/scrollbar_slider_middle.png b/textures/base/pack/gui/scrollbar_slider_middle.png new file mode 100644 index 0000000000000000000000000000000000000000..c0f874c1dacf6090c208587aa3e82ed730546c85 GIT binary patch literal 120 zcmeAS@N?(olHy`uVBq!ia0vp^4nWMr!2~4JXZyYbQudxMjv*C{$s2TSnOuyo?O|A? zdOMCe@ba4D4p$8SYsxV0%ve!&OL>)Y%4fs728l0?6}ndLWOA?isNIlpqMCu>me-HU UAg;MHfJQNRy85}Sb4q9e0MWxIHUIzs literal 0 HcmV?d00001 diff --git a/textures/base/pack/gui/scrollbar_slider_top.png b/textures/base/pack/gui/scrollbar_slider_top.png new file mode 100644 index 0000000000000000000000000000000000000000..9a3c76161586e166aced6d3afd9942a69289474f GIT binary patch literal 254 zcmV