Hi everyone,
I’d like to know how I can make the input field wider. The one that appears when I use Ctr-T for tagging.
Is is hardcoded? Or is it sized by CSS? Which file, name of the appropriate selector?
Thanks in advance.
/mika
Hi everyone,
I’d like to know how I can make the input field wider. The one that appears when I use Ctr-T for tagging.
Is is hardcoded? Or is it sized by CSS? Which file, name of the appropriate selector?
Thanks in advance.
/mika
I have never used this feature, but upon checking I agree its size seems excessively small. I wonder if a feature request to increase this size in the next DT would be welcome.
I am not a C programmer, so please be patient if I am mistaken.
Yes, see
Look for FLOATING_ENTRY_WIDTH (lines 40, 3881, 3891)
#define FLOATING_ENTRY_WIDTH DT_PIXEL_APPLY_DPI(150)
[…]
if(on_wayland)
{
GtkAllocation a;
gtk_widget_get_allocation(center, &a);
GdkRectangle rect;
rect.x = MAX(0, a.width - 1);
rect.y = MAX(0, (a.height / 2));
rect.width = FLOATING_ENTRY_WIDTH;
rect.height = 1;
gtk_popover_set_pointing_to(GTK_POPOVER(d->floating_tag_window), &rect);
}
else
{
gint px, py, w, h;
gdk_window_get_origin(gtk_widget_get_window(center), &px, &py);
w = gdk_window_get_width(gtk_widget_get_window(center));
h = gdk_window_get_height(gtk_widget_get_window(center));
const gint x = px + 0.5 * (w - FLOATING_ENTRY_WIDTH);
const gint y = py + h - 50;
gtk_window_move(GTK_WINDOW(d->floating_tag_window), x, y);
gtk_window_present(GTK_WINDOW(d->floating_tag_window));
}
Perhaps it would even better, if one could size/position it to one’s own liking - with additional CSS.Like we can do with colors etc…
/mika
Many thanks for that research!
Very helpful for anyone who wants to compile his own homebrew version of DT.
/mika
It just happened.
/mk