Few questions lazarus / 11-Options ---------------------------------------------------------------------- dmytron · 2015-02-19 10:48 I'd like to make Lazarus to look more like Windows Delphi so here are my questions: How to change the color of Component Palette? White color drives me crazy, and I'd more like to make it clBtnFace to be in touch with the near toolbar. And how to change the color of Object Inspector to clBtnFace?How to change the font of the IDE? I understand it's an open source font but I'd like to have it more similar to Delphi's. Maybe change it to some free font that is more "solid"Where's compiler progress window? It has been vanished from the Options window, and I 'd like to have it ---------------------------------------------------------------------- JuhaManninen · 2015-02-19 12:08 Quote from: dmytron on February 19, 2015, 11:48:57 amI'd like to make Lazarus to look more like Windows Delphi so here are my questions: In fact Lazarus does not need to look like Windows Delphi. LCL should be compatible with VCL but the IDE can be different. But yes, it should look good in any case. QuoteHow to change the color of Component Palette? White color drives me crazy, and I'd more like to make it clBtnFace to be in touch with the near toolbar. And how to change the color of Object Inspector to clBtnFace? Yes, it should be configurable. Now it is not. QuoteHow to change the font of the IDE? I understand it's an open source font but I'd like to have it more similar to Delphi's. Maybe change it to some free font that is more "solid" Font in menus and labels etc.? To me it looks good. I am on Windows and just compared with Delphi 2007 and they look equally good. QuoteWhere's compiler progress window? It has been vanished from the Options window, and I 'd like to have it http://wiki.lazarus.freepascal.org/Lazarus_1.4.0_release_notes#IDE_doe s_not_show_Compile_Dialog It can be restored if somebody ports it to the new build system and promises to maintain it. On the other hand it is useless because all info is already in the messages window. ---------------------------------------------------------------------- dmytron · 2015-02-19 12:36 Quote from: JuhaManninen on February 19, 2015, 01:08:09 pmFont in menus and labels etc.? To me it looks good. I am on Windows and just compared with Delphi 2007 and they look equally good. So how to change it, anyway? QuoteIn fact Lazarus does not need to look like Windows Delphi. LCL should be compatible with VCL but the IDE can be different. But yes, it should look good in any case. I know it, but to me right now Lazarus IDE is looking ugly. Delphi 7 looks better to me. One of the reasons is this omnipresent white color. ---------------------------------------------------------------------- balazsszekely · 2015-02-19 13:03 You can find the source under: $(LazarusDir)/IDE ---------------------------------------------------------------------- JuhaManninen · 2015-02-19 14:24 Quote from: dmytron on February 19, 2015, 01:36:28 pmSo how to change it, anyway? I don't think it can be changed. Only source editor font can. I never thought of it, it has looked good to me. Can you please attach a screenshot. Maybe there is a configuration problem. I attached mine. QuoteI know it, but to me right now Lazarus IDE is looking ugly. Delphi 7 looks better to me. One of the reasons is this omnipresent white color. Object Inspector's colors can be configured but not the TreeView part. Needs improving, too. Component palette's layout can be configured now but colors not. Anybody noticed the layout page in environment options yet? ---------------------------------------------------------------------- marcov · 2015-02-19 15:54 Quote from: JuhaManninen on February 19, 2015, 03:24:27 pmObject Inspector's colors can be configured but not the TreeView part. (The treeview is called structure editor, and the properties of objects is called object inspector in modern Delphi's.) ---------------------------------------------------------------------- dmytron · 2015-02-19 16:03 Here's my screenshot. I must say that I have installed Windows XP theme 2 hours ago so right now it looks less ugly. However, you can see there is some problem with the drawing of the menu. These theme has more contrast (as you can see), so now it's not the same white everywhere. But it was a nightmare in the default Windows 7 theme. You can compare it with the Delphi 7 screenshot (got it from Google Picture Search). See how the color is the same as in toolbar and component palette as in object inspector. Beside, I think the toolbar is more beautiful there because it has separators so feels more 3-dimensional this way. I'd change it myself ( would replace to Coolbar) but don't know whether should I edit .lfm file by hand or is there an easier way. ---------------------------------------------------------------------- engkin · 2015-02-19 16:21 Repeat your screenshots with and without themes enabled to show mainly the menus, just like the way Juha did it above. This way you don't have to reduce the size %50 and will show us the problem clearly. ---------------------------------------------------------------------- dmytron · 2015-02-19 16:42 Updated screenshots. ---------------------------------------------------------------------- wp · 2015-02-19 16:49 Delphi 7 is from the old times when themes were still to be invented by MS. Therefore the component toolbar is gray. Delphi XE2, on the other hand, is themed and it shows the component palette in white - at least in principle because the the toolbar with the component icons has a gray background and this covers most of the white background of the pagecontrol. (I personally find this kind of layout very ugly, it just look buggy...) Lazarus is themed and the component palette must be white (at least with the standard theme of Win7/Vista). Please don't fiddle around with changing individual elements of a theme until Lazarus does not has the complete architecture for all elements. ---------------------------------------------------------------------- dmytron · 2015-02-19 16:53 What about changing toolbar to the Coolbar? ---------------------------------------------------------------------- JuhaManninen · 2015-02-19 17:13 Quote from: dmytron on February 19, 2015, 05:42:53 pmUpdated screenshots. Your both versions have menu captions chopped at the end. Why is that? Otherwise the fonts are ok but they are smaller than in my screenshot. I have a rather standard Windows 7 installation with 1920 x 1080 resolution and 125% font size. QuoteWhat about changing toolbar to the Coolbar? You mean the toolbar with IDE speedbuttons like New Unit, Open, Run, Pause etc.? The component palette should still be separate I guess. We are surely not tied to Delphi 7 IDE layout. If you have good ideas, please create a mockup and/or screenshots. It already bothers my that there is Component Palette and Component List and they cannot be configured as clear alternatives. wp, how did you get that kind of palette in Delphi XE2? I remember it has the new listbox style palette. I don't really know much about theme support in Lazarus. Maybe I must learn more about that. ---------------------------------------------------------------------- engkin · 2015-02-19 17:19 Quote from: dmytron on February 19, 2015, 05:42:53 pmUpdated screenshots. You also have this same problem.  Read the rest of the thread and see if you can help hunt the bug. There is even a proposed temporary fix in the thread but can not test its validity as I can not reproduce. Of course, while changing the color to one you like. ---------------------------------------------------------------------- wp · 2015-02-19 17:25 Juha, sorry I had completely forgotten this detail: I had installed Andreas Hausladen's DDevExtensions, and this allows to add the "Old component palette". Why isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? ---------------------------------------------------------------------- wp · 2015-02-19 17:39 Quote from: JuhaComponent palette's layout can be configured now but colors not. Anybody noticed the layout page in environment options yet?Yes, I've seen it some time ago and already rearranged the palette to my liking. One of the greatest features of the new Lazarus! It makes the multi-tab layout less important. ---------------------------------------------------------------------- JuhaManninen · 2015-02-19 17:55 Quote from: wp on February 19, 2015, 06:25:34 pmWhy isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? PageControl, yes. Multi-line tab layout for Component Palette sounds like a good idea. Does it fit well in its current place? Not really, I think it must be separated from the IDE toolbar at some point. It could be a dockable window just like Component List and they would be true alternatives. Then the main window would only have menu bar and speedbuttons. Its layout could be rethought, too. I changed the palette code a lot when implementing its configurations. BTW, it includes some speedups like delayed drawing of buttons in hidden tabs. The IdeIntf code still needs refactoring to make it more generic and GUI agnostic. Now TBaseComponentPage in ComponentReg has TCustomPage which is a GUI component. If somebody wants to play with it, please go ahead. Thunk is open for big changes again. ---------------------------------------------------------------------- Martin_fr · 2015-02-19 18:54 Quote from: wp on February 19, 2015, 06:25:34 pmWhy isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? Components can also be viewed in other layouts. Right click => view all. Opens a window with an (actually 3) alternative ways to view and use the components. If you prefer using this, you can always hide the component palette from the main ide bar (View menu). Unfortunately that does not adjust the layout of the remaining buttons. ---------------------------------------------------------------------- Syndrome · 2015-02-19 20:15 Dmytron, your lazarus looks wrong. Object inspector shouldn't be white. ---------------------------------------------------------------------- zeljko · 2015-02-19 20:40 Quote from: wp on February 19, 2015, 06:25:34 pmJuha, sorry I had completely forgotten this detail: I had installed Andreas Hausladen's DDevExtensions, and this allows to add the "Old component palette". Why isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? No it's not, I think that Delphi uses owner drawn tab control. I'm not sure that any widgetset supports multline tabs (tabs in rows like in screenshoot of XE2). ---------------------------------------------------------------------- Martin_fr · 2015-02-19 21:11 Quote from: zeljko on February 19, 2015, 09:40:03 pmQuote from: wp on February 19, 2015, 06:25:34 pmWhy isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? No it's not, I think that Delphi uses owner drawn tab control. I'm not sure that any widgetset supports multline tabs (tabs in rows like in screenshoot of XE2). TPageControl supports multi-line (at least on windows). For the component palette all that is needed is one property set to true, and the constraint of the window height adjusted. I mocked it up, using "ide inspector"  (able to change any published property of visible controls in the IDE / but only temporary, no option to save) ---------------------------------------------------------------------- wp · 2015-02-19 21:58 Quote from: Martin_frI mocked it up, using "ide inspector" I must confess that I have never seen this tool before. Amazing! ---------------------------------------------------------------------- Martin_fr · 2015-03-04 14:24 Quote from: wp on February 19, 2015, 06:25:34 pmWhy isn't it possible to achieve the multi-line tab layout in Lazarus? The component palette (and the editor window) is just something like a TabControl or PageControl, isn't it? I've added an option for the source editor. It will set the flag on the TPageControl, so it depends on the widgetset supporting this. It works on windows. Note that on windows tabs on the left/right are always multi-line, and if you set the tab position to left/right then the multi-line option has no effect (i.e. it will not disable the multi-line that is forced by the position) ---------------------------------------------------------------------- wp · 2015-03-04 14:43 Thank you - excellent.