dbeaver / dbeaver

Free universal database tool and SQL client
https://dbeaver.io
Apache License 2.0
40.2k stars 3.47k forks source link

Resize toolbar butons #1391

Closed gjannotti closed 7 years ago

gjannotti commented 7 years ago

Hi guys,

First of all I love this tool ! I'm using DBeaver 4.0.2 on Ubuntu 14.04 and I configured it to use GTK theme.

On this environment the toolbar buttons are too small and are squeezed by the window title: image

There's a away to change the theme layout to increase the toolbar buttons size or add a space between the toolbar and the window title to make the toolbar buttons easier to click ?

Looks how on Eclipse JDT 4.6 there is a space between the toolbar buttons and the window title bar: image

Regards,

rookeward commented 7 years ago

I'd like to second this request. The icons are very small on a large screen - it would be good to be able to increase their size and space them out. On my windows 10 second screen, there is a distinct overlap with the bottom of the "Active Data source" cut off.

serge-rider commented 7 years ago

Agreed

serge-rider commented 7 years ago

Please check #1971

Also you can configure scale factor for DBeaver manually. E.g. you can add line "-Dswt.autoScale=150" in dbeaver.ini file after -vmargs line. This will scale UI in 150%.

serge-rider commented 7 years ago

Extra improvements of HighDPI scaling will be added after DBeaver will migrate on Eclipse Oxygen (4.2.3 or 4.2.4)

amacfie commented 5 years ago

Please check #1971

Also you can configure scale factor for DBeaver manually. E.g. you can add line "-Dswt.autoScale=150" in dbeaver.ini file after -vmargs line. This will scale UI in 150%.

@serge-rider Where's the dbeaver.ini file in a Linux distribution?

tobiasmuehl commented 5 years ago

@amacfie /usr/share/dbeaver/dbeaver.ini

tobia commented 4 years ago

In case somebody else is using the Snap package (where dbeaver.ini is read-only) and needs to configure the swt.autoScale parameter, you can use a custom launcher script:

#!/bin/bash

# resize icons in percent
resize_icons=150

vm=/usr/bin/java
base=/snap/dbeaver-ce/current
vmargs=(
    -XX:+IgnoreUnrecognizedVMOptions
    --add-modules=ALL-SYSTEM
    -Xms64m
    -Xmx1024m
    -Dswt.autoScale=$resize_icons
    -jar $base/plugins/org.eclipse.equinox.launcher_*.jar
)
args=(
    ${vmargs[@]}
    -os linux -ws gtk -arch x86_64 -showsplash
    -launcher $base/dbeaver
    -name Dbeaver
    --launcher.library $base/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_*/eclipse_*.so
    -startup $base/plugins/org.eclipse.equinox.launcher_*.jar
    --launcher.overrideVmargs
    -exitdata 4910006
    -vm $vm
    -vmargs ${vmargs[@]}
)

export GDK_CORE_DEVICE_EVENTS=1
export LIBOVERLAY_SCROLLBAR=0
export OXYGEN_DISABLE_INNER_SHADOWS_HACK=1

exec $vm ${args[@]}

The JVM executable, options and environment variables were discovered using strace. They may vary on your system:

strace -f -v -e execve -s 99999 /snap/dbeaver-ce/current/dbeaver 2>&1|grep execve

This is the documentation for the swt.autoScale parameter.

katzda01 commented 1 year ago

How is this resolved? I've just installed DBeaver latest version on windows 11 and the icons are terribly small!

Edit: I dont have the problem anymore. Not sure if its because I had changed my laptop's resolution to a much lower value (becasue it was smaller but same resolution) so that maybe Windows doesn't scale it weirdly with other screens?

devmi commented 10 months ago

How is this resolved? I've just installed DBeaver latest version on windows 11 and the icons are terribly small!

Same on the latest DBeaver CE for macOS (Version 23.3).

rambalachandran commented 9 months ago

Unfortunately -Dswt.autoScale=150 doesnt work in Linux (Ubuntu) with window manager like i3. The higher the value, the lower the screen part is used. Not sure, how to make it work in the window manager. Any pointers will be of great help