Questions tagged [gtk]

Use this tag for GTK and theming related issues

Filter by
Sorted by
Tagged with
0
votes
0answers
43 views

ODIN - GTK Theme Reset

For some reason the theme I am choosing by Pantheon Tweaks is automatically being changed to the default dark system theme and I need to manually reset the custom gtk theme every time.
1
vote
0answers
87 views

Workaround: How to fix GTK theme issue installed from APT

I've installed Elementary Odin wanting to give the Elementary OS dark mode a try. I really liked the dark theme but was upset that when I installed a GTK application from APT not Flatpak it gives you ...
0
votes
0answers
24 views

Unable to move Hdy.ApplicationWindow by dragging Hdy.HeaderBar in Vala

Trying to use libhandy and Hdy.ApplicationWindow instead of Gtk.ApplicationWindow in my vala based application made for elementary OS. My Problem While using Hdy.ApplicationWindow and Hdy.HeaderBar ...
0
votes
0answers
6 views

Change widget size individually

Can anyone tell me how to make the size of the color selector circle not be affected by the use of the Granite.ModeSwitch?
0
votes
0answers
4 views

Error while trying to access city name using GWeather and gtk

I want to access the city name and add it to a Gtk.Label. This is how I try to do it. Can anyone tell me what is wrong with my code? Or suggest some other way to get the city name? public class Epoch....
0
votes
0answers
11 views

Create list to be added in Gtk.ListBoxRow

I created a List using this code. Now when I try to access the elements of the list, the compiler displays this error: Can someone suggest how to solve this problem? This is how I try to access each ...
0
votes
0answers
14 views

Gtk grid inside another grid not visible on the main window

I made a separate file for all the labels to be used in the main window called Labels.vala This is the code inside that file: Now, when I try to add this class to a grid inside the main window, it ...
0
votes
1answer
21 views

Technical error while using Cairo

using Cairo ; using Gtk ; using GLib ; public class ClockWidget : DrawingArea { private Time time ; private int minute_offset ; private bool dragging ; public signal void ...
1
vote
1answer
29 views

StackSIdebar is not visible

I used Gtk.StackSidebar to create a sidebar for an app that I am making. https://github.com/Suzie97/Project_X97, this is the link to my github repo. The sidebar is not correctly visible on the window. ...
0
votes
1answer
62 views

gsettings schema isnt installed

I am learning to make apps for Elementary OS. I wrote my app it compiles well without any errors. But when I try to open the application, it displays a message stating gsettings schema isnt installed. ...
0
votes
1answer
84 views

How to get GNU Emacs from Flathub work on elementary OS?

To avoid Emacs installed through AppCenter crashing on opening, solution was actually explained here. But AppCenter only offers Emacs25 so I installed Emacs27 through Flathub (built in AppCenter)... ...
1
vote
2answers
134 views

GTK 3.22 migration of older gtk.css -> Black Margin on elementaryOS apps

I have a legacy gtk.css that was working fine on Ubuntu Xenial, I've just upgraded to Bionic (2018) and the same code now is not working anymore: $ cat .config/gtk-3.0/gtk.css .window-frame { box-...
1
vote
1answer
26 views

How do I turn off the windows gradient? [SOLVED]

How do I turn off the gradient of the windows? Currently I am using the elementary-x (white version) theme and the gradient on the windows makes the close, minimise and maximise buttons to look kind ...
1
vote
1answer
32 views

Breadcrumbs bar in file dialog not working

Some time ago a breadcrumbs path bar in all file dialogs in Pantheon (like “Open“ or “Save” dialog) stopped working. It displays a current folder right, but when I try to click on it to move, for ...
4
votes
2answers
98 views

I want to add the listbox scroll fade effect in my app - how?

I am referring to the effect eg. the session indicator has or the keyboard language adder has. I'd prefer it with the responsiveness the session listbox has.
0
votes
1answer
81 views

Can't make Gtk.TextView () fill whole parent Gtk.Box

Can't make Gtk.TextView () hexpand. Only expands to like 2/3 of parent and wraps words too early. Source: https://github.com/stsdc/monitor/blob/d3685a314712e263987da942724432c3469108e6/src/Widgets/...
2
votes
1answer
103 views

I don't know what the problem is, but some apps look weird like this [SOLVED]

i've install audacity from flatpak source, and this happen... and install Telegram Desktop from flatpak, and this happen when browse files.. can anyone tell me what wrong?
0
votes
1answer
93 views

VALA GTK Header Bar with switch distorted

I'm trying to create a Window with a HeaderBar, and in the HeaderBar there will be a Switch. But, the switch gets sized vertically, and gets distorted (non proportional), is there some fix?
1
vote
1answer
133 views

Code don't work

I made this code, but it doesn't work correctly. The window is created, but the button does not appear. I do not receive any error reports. Would anyone know why? public class MyApp : Gtk.Application ...
0
votes
0answers
126 views

Missing title in GTK+ 3 Dialog

I'm writing a vala GTK+ application and want to add a modal dialog like this: var dialog = new Gtk.Dialog.with_buttons (_("My title"), this, Gtk.DialogFlags.MODAL | Gtk.DialogFlags....
0
votes
0answers
19 views

Some programas shows ghost windows [duplicate]

It seems to happen on software written on java. For example DBeaver or MySQL Workbench when you run some feature, the emergent window shows with a ghost window background like next image: I think is ...
1
vote
1answer
166 views

How do I make Gtk Headerbars look okay in Elementary?

I know that Elementary has its own Headerbar style, but if you use any Gnome apps (as we all of course will), their headerbars often look flatly bad in Elementary, despite having nearly identical ...
2
votes
1answer
26 views

Elementary app feasibility: modify any current text input

I'm using a qwerty keyboard with english layout but as a french speaker I would like to access special chars without changing the layout. To do so, I'd like to create an app that mimic the android ...
0
votes
1answer
592 views

eOS Juno : Scale at 1 but display too big yet [duplicate]

I have Elementary OS Juno and I wanted to change the scale because all was too little. So I went to "Display" in settings and I double pixels. but now, it's too big and when I try to go back with "...
0
votes
2answers
377 views

My elementary os Juno's top bar doesn't work with another theme

My Juno's top bar can't apply with any theme I copy from Downloads folder to /usr/share/themes. And I used tweak tool from philip.scott. What should I do?
0
votes
2answers
149 views

mate-system-monitor won't show in Application menus, plus errors when launched in terminal

I installed mate-system-monitor on my elementary OS Loki install via AppCenter, but I couldn't find it in the Applications menu. I searched for it, with no luck. So I uninstalled it, and installed it ...
0
votes
1answer
228 views

Button CSS not working in Juno

I'm using this code to apply some dynamic css to button based on colours chosen by the user. This was working in Loki but not working in Juno Beta. Thanks in advance for any pointers. 1.Create a CSS ...
2
votes
1answer
542 views

Trying to replicate this macOS dark sierra theme

so yesterday i decided to try linux because im tired of the uglyness of windows and because i wanted to get the closest to this look but here its what i got so far. i dont know what to do to be ...
1
vote
1answer
76 views

Add Startup App menu broken

My Add Startup App menu is broken. I can still type and use the keyboard to select, but I can't see any of the results. Is there a way to fix this? EDIT: Looks like the app Franz may be the culprit:...
0
votes
1answer
143 views

Missing styles when building app using Gtk.CssProvider

I'm using cmake and following the instructions per Elementary OS site (https://elementary.io/docs/code/getting-started#building-and-installing-with-cmake). Everything looks good when compiling the ...
0
votes
1answer
259 views

Linked style doesn't work for buttons

Only button with label has linked style. var button_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 0); button_box.get_style_context ().add_class (Gtk.STYLE_CLASS_LINKED); info_button = new Gtk....
1
vote
1answer
164 views

Suspend Problem (?) [closed]

does anyone experience UI problems when waking up from suspend? What I meant is not the black screen problem, it seems like the GTK theme is broken when waking up and this happened randomly. For ...
0
votes
2answers
1k views

Swift/GTK Bindings

We see from this that there is interest in using Swift to develop apps for elementary OS. There's also experimental GTK bindings available, but I don't think it's being maintained: https://github.com/...
2
votes
2answers
635 views

Pantheon Files Side Panel CSS

How can I change the color of the Pantheon files sidebar from dark to light? I can't seem to find the CSS that controls this aspect of it. If anyone knows where to find it please let me know.
2
votes
2answers
1k views

GTK Themes Doesn't Work Well on Loki [duplicate]

themes that I want to apply on my PC don't work as they should. I put the theme folder into the folder /home/firat/.themes/ that I created before. Then I use Tweak Tool software to apply it. But it ...
3
votes
3answers
2k views

GTK theming in snap apps

I have installed libreoffice as a snap. In Ubuntu it uses th default gtk theme but in Elementary OS it doesn't. Is it possible to enable this or do i need to wait for the Elementary team to implement ...
1
vote
2answers
295 views

Cumulus not working on elementary os loki

Cumulus, a popular weather app for linux isn't working on loki. it doesn't launch from slingshot-launcher and when i invoke it from terminal this comes back : Traceback (most recent call last): ...
1
vote
0answers
246 views

How do I change app styles?

can anyone explain to me what I need to do in order to change the styles of a gtk application? For example I want to keep the elementary gtk theme but change a detail here and there so I go to /usr/...
1
vote
1answer
604 views

Can't find gtk header file for vala-code compilation

I am trying to run the first sample code on this site. Unfortunately I got the following error message: Package gobject-2.0 was not found in the pkg-config search path. Perhaps you should add the ...
1
vote
0answers
110 views

Changing Vala or GTK version to compile [closed]

Bit of a newbie question, but I am trying to build Writer to play around with. I followed the build/installation instructions , but am getting the following error: CMakeFiles/writer.dir/src/Widgets/...
2
votes
1answer
242 views

Using Granite with a different language besides Vala

I am interested in developing for elementary OS, but what's holding me back from doing so is that I can't figure out how to use the Granite widgets from C++. I would prefer to use this instead of ...
1
vote
1answer
224 views

StatusIcon not showing/working

Good morning dear community, i have a little trouble and i can't found any proper explanation for this issue, actually i'm developing an small application to hear radio streaming using Vala and ...
2
votes
3answers
2k views

Applications look ugly when using third-party "Arc OSX themes" [duplicate]

I'm using elementary OS Loki 0.4 with the Arc OSX themes for GTK+ but the UI in apps is very ugly, can someone help me?
2
votes
2answers
1k views

Update Gtk+ on Loki?

If i update the GTK+ to 3.20 or 3.22 will be able to happen a problem with the system as it uses the 3.18?
1
vote
0answers
110 views

No icons on buttons on GTK# apps

I stack with the problem with mono app written on GTK#. I try to change org.gnome.desktop.interface buttons-have-icons to true which solve this problem in Freya, but it didn't solve problem in Loki. ...
2
votes
1answer
69 views

XHTML with WebKit

I am working on an ebook application with WebKit 3 (webkitgtk-3.0) on Elementaty OS Freya. epubs which have html display fine, however the new epub 3 with XHTML comes garbled with multi columns ...
2
votes
1answer
241 views

Buttons' Look in a Gtk.MessageDialog

Elementary's human interface guidelines specify how dialogs should look: In Valadoc, there is a minimal example on how Gtk.MessageDialog is to be used: Gtk.MessageDialog msg = new Gtk.MessageDialog (...
0
votes
2answers
519 views

GTK theme inspector for Desktop Enviroment elements [duplicate]

Ever used firebug or google chrome inspector? Is there any similar way to inspect elements in the desktop environment to get their "element name" or "class" or "id"? Actually I've installed the os x ...
0
votes
1answer
383 views

Firefox Filechooser Dialogs don't have a select/save button in Loki [duplicate]

I'm currently trying out Loki, and it's running quite fine as far as I see. Only real annoyance: Firefox is currently showing a bug. If I open a Filechooser in Firefox, no matter if its for saving a ...
1
vote
0answers
719 views

Is it possible to change the window border color of terminal in freya?

I just want to make the vim a.txt to black and the background color of the title bar and the tab bar to silver.