Windows 10 (April Release 1804) introduced "thin" scrollbars, similar to macOS. But it looks like they only apply to certain apps (like "Settings"), but not to "File Explorer", "Firefox" or "MS Edge".
Am I missing something? Are there really two kinds of scroll bars?
Is there any way to control that behavior with HTML/CSS/JS?
You could change the Scroll Bar Width to be Thinner by changing the Registry, please refer to the following steps:
Open Registry Editor (regedit.exe).
Navigate to the key below in the left pane of Registry Editor. (see screenshot below)
Computer\HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics
In the right panel of the WindowsMetrics key, double click the ScrollWidth string value to modify it. Enter a value between -120 (thinner) to -1500(thicker) for what you want, then click OK button to save the change.(screenshot as below)
Double click the ScrollHeight key, and enter the value (between -120 (smaller) to -1500 (larger) for what you want), click the OK button to save the change.
Close the Registry Editor, restart the Computer.
Edit:
Is there any way to control that behavior with HTML/CSS/JS?
I don't think we can modify it with HTML/CSS/JS, because it is the browser or windows behavior. If you want to change the html element's scrollbar with, you could use the CSS scrollbar-width property.
Related
I am creating File Manager like Miller column app for windows in JavaFX for learning purpose.
Check the screenshot below:
As you can see, when toolbar exceeds, there comes a double arrow button for more items to select from popup.
I already did auto scroll for miller column, which works as expected.
scrollPane.hvalueProperty().bind(hBox.widthProperty());
I would like to auto scroll toolbar to last item and show double arrow on left side.
I am adding adding clickable buttons in toolbar for traversing like manual BreadCumBar.
Tried ControlsFX BreadCumBar, it doesn't even show arrows or popup when exceeds, Bug here : https://bitbucket.org/controlsfx/controlsfx/issues/810/no-double-arrow-popup-like-when.
If its not possible to do so with toolbar, I would like to know how to customize toolbar popup only via css. Or any other way that improve usability easiness.
Also I would love to know suggestions for whole app from expert designers.
Thanks.
I am designing my app UI with the GUI Builder. I created a new Form and defined a style as follow :
FinishFlagIcon {
background-image: url(pics/FinishFlag.png);
cn1-background-type: cn1-image-scaled-fit;
cn1-source-dpi: 320;
font-size: 11.9mm;
}
I set this style on a label and it appears on the GUI Builder.
However when I launch the project in the simulator it does not appear anymore.
I also tried to use a Scaled Label and defined the icon as FinishFlag (which was present in the res file), and again it appeared in the GUI Builder but not in the simulator. Of course there is no error printed in the console telling me the file could not be found.
Please note: the res/myCustomTheme.css folder holds all the subfolders related to the png (and those subfolders are populated with low to hd pngs) and the src/theme.res has the pictures (folowing Shai's advice) :
So what should I do to make the picture appear in the simulator ?
Edit : I tried to hand code the UI and added a Label (with the UIID defined above) to the the central area of a BorderLayout. I does not appear either until I add 3 spaces or more to the Label. I did not try again with the GUI Builder. It looks odd to me, is it done on purpose ?
Edit September 13th 2017 : If I build the app and open it on a real Android device then the labels appear.
Edit September 15th 2017 : For people having the issue of component not showing, as advised in the accepted answer the solution consists in removing top or bottom constraint of the component not showing and setting it to auto (click on the lock) so that there is enough space for the components. So eventually after setting to "auto" the bottom constraint of the progress bar an labels the expected result appear on the simulator :
Any help appreciated,
The images in your issue are a red herring. It looks like the problem is with your layout insets. Notice that none of your lower components are showing up in the simulator. The "progression" label, the three zeroes, etc...
I can't see the constraints you are using for the flags or the zeroes labels, but I can see that the "progression" label has fixed insets on both top and bottom. This may result in a zero height if there isn't enough space for it. Try changing either the top or bottom insets to "auto" so that they are flexible.
Try changing the simulator to use the desktop theme so that you can resize the window and see how the form looks at different sizes.
You can also easily verify this by overriding the layoutContainer() method of the form, and check the height that your flag label is getting:
public void layoutContainer() {
super.layoutContainer();
System.out.println("finishflag height: "+gui_FinishFlag.getHeight());
}
I'm not sure what's the "right" solution for this so maybe Steve can interject but this is what's happening.
You have two resource files: theme & theme.css.
The images in theme.css work great for your styles. However, since the loading process loads theme and not theme.css the simulator is unaware of these images as the theme res file doesn't know of them.
The GUI builder is probably scanning all the res files here so it lets you do that which might be a mistake... You have the following options to workaround this:
Load theme.css and discard theme - you will need to define the inheritNativeThemeBool flag and should no longer use the designer tool if you take that approach
Use the designer tool to load the images rather than CSS
Explicitly load the css res file using Resources.open and explicitly pass it to the Form
Explicitly load the css res file using Resources.open and set it as the global resource file
can someone tell me what is the meaning of the icons in the title bar? A rocket, a plus, a star.. Im very curious.
Look at the file names of the icons. The first component describes the meaning: https://github.com/awesomeWM/awesome/tree/master/themes/default/titlebar
The plus is for sticky windows. These are windows which are visible on all tags (normally windows are only visible if one of their tags is selected).
The star is for ontop. These windows ignore the normal stacking order and are ontop of everything else.
The rocket is for maximized windows. These windows ignore the current layout and use all the available space.
The arrow is for floating windows. These windows also ignore the current layout, but they can be freely resized to any size.
The cross is a close button. It closes windows! ;-)
I am working on a custom control box (that min,max/restore/close button in the top right of your Windows titlebar) for my new application. I use closeIcon = style.standardIcon(QStyle.SP_TitleBarCloseButton) to get the correct icon for them. See the full code here in my other SO question. What I got is a black icon. In which I need the white version when it's in hover state.
Can we .. I don't know, inverse it? Or should I get another icon from QStyle?
This question (and several others) are from the intention of creating a chrome like tab in PyQt application, by hiding the titlebar and reimplementing control box. But it didn't gives the best result. Right now this is my solution to create a chrome like tab in PyQt application. Therefore, I close this question.
Is there any way to make console2 go fullscreen? I edit settings and increase window and buffer size but when I restart settings are reset to 63 rows in window size.
I've found that the maximise button is disabled, but you can get around it by setting Run option of the executable's shortcut to Maximised.
Better yet you can hide the window title bar in Console2's settings (Appearance > More... > Caption).
Here's the final result:
So, I've found this fork of Console2 which is amazingly better, it's called ConsoleZ:
https://github.com/cbucher/console/wiki/Downloads
Besides the maximization, it provides find in tabs, fullscreen mode and split tabs. Totally worth to check it out, IMHO.
EDIT
Forgot to mention, you can just download and replace the binaries, and all your configurations will be kept, as far as I've perceived.
[]'s
OK I managed to do it on win7 but still no luck on XP. This is how I did it.
In Settings→Behavior, check the Initial position checkbox and left the X and Y as default 0
Restart console
After restart, resize window dragging the borders to fill whole screen
Restart again
In Settings→Appearance→More uncheck Caption and Border
I don't know why just entering rows and columns doesn't work. One has to resize the window and restart.
On my screen with this font it is 62 rows (with space left for tabs on bottom) and 238 columns. I have 24" monitor. I set font to be Consolas size 11.
You can change the number of rows to change tab settings.
Click "Edit"->"Setting"->"Tabs" and click "Add" button. Then, the new entry which name is "Console" appears in the tab name list. In the main tab menu on the bottom, input these two parameters in the fields.
Title: Cygwin
Shell: C:\cygwin\bin\bash.exe --login -i
At last, move up the "Cygwin" entry to the top and restart console2. Now you can change the number of rows.
The detail how to configure tab settings is here.
https://openshift.redhat.com/community/blogs/upgrade-cygwin-to-console2-and-improve-the-productivity-of-openshifts-rhc-client-tools-on-wind
In order to make Console2 have the desired window size (even when opening a new tab which generally causes the entire app's window to resize to smaller), do the following:
View -> Console Window
In the console window that pops up, right-click its title bar and select Properties
Set the window width/height and buffer sizes as you like and click OK
Cheers
I founded a small program called, sizer 3.34, that configure the window size of every program window you have.
When installed, it apears at the popup menu, when you click with the secundary mouse button at the top bar of a window. It allows you to config the three size profiles it has, and to add one, or more, if you want.
I think is a good solution for this issue (and for another programms that would have the same problem).
Reggards.