LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2024, 05:28 AM   #1
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Rep: Reputation: Disabled
X11 resources to change app look


Hi,

I'm using xpdf & want to change the scrollbar colour (if possible) since it's not easily visible.

How do I find the X11 resources to tweak this?.

Running
Code:
edires
shows a huge tree of resources but how is that helpful?.

Thanks
 
Old 03-26-2024, 08:14 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,143

Rep: Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264Reputation: 1264
xpdf is not written directly on top of X11; nobody does that. It uses the Qt cross-platform graphics library. A quick test shows that it is pulling in your desktop theme for most window elements. Anything else would be controlled by a built-in QML style sheet.

If you don't want to get into the program source, you can look at your desktop theme tools. I use KDE which has an application style editor. It lets me customize look-and-feel, including color, on many theme elements. The blue color used by window elements like scrollbars disappears in the dark, high-contrast themes, but can be changed to green or red if you prefer those.
 
Old 03-26-2024, 10:59 AM   #3
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,605

Rep: Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548
Quote:
Originally Posted by smallpond View Post
xpdf is not written directly on top of X11; nobody does that. It uses the Qt cross-platform graphics library.
???

Whatever you're referring to is not what jt1122 is asking about.


The xpdf Xresource file is at /etc/X11/Xresources/xpdf

How to figure this out? On a Debian system, one can do:
1. Run "type -a COMMAND" to confirm where the binary is located.
2. Run "dpkg-query --search BINARY" to confirm what package it is.
3. Run "dpkg-query --listfiles PACKAGE" to get a list of files - on a non-scrolling terminal you may want to pipe via less.

When one knows the package already, skip the first two steps. Or indeed, look at the appropriate file list on via Debian's online package page.

 
Old 03-26-2024, 12:21 PM   #4
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
xpdf is not written directly on top of X11; nobody does that. It uses the Qt cross-platform graphics library. A quick test shows that it is pulling in your desktop theme for most window elements. Anything else would be controlled by a built-in QML style sheet.
.
Thanks but it seems you misunderstood my question.
 
Old 03-26-2024, 12:24 PM   #5
jt1122
Member
 
Registered: Apr 2021
Posts: 140

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
???

Whatever you're referring to is not what jt1122 is asking about.


The xpdf Xresource file is at /etc/X11/Xresources/xpdf

How to figure this out? On a Debian system, one can do:
1. Run "type -a COMMAND" to confirm where the binary is located.
2. Run "dpkg-query --search BINARY" to confirm what package it is.
3. Run "dpkg-query --listfiles PACKAGE" to get a list of files - on a non-scrolling terminal you may want to pipe via less.

When one knows the package already, skip the first two steps. Or indeed, look at the appropriate file list on via Debian's online package page.

Thanks.

Code:
cat /etc/X11/Xresources/xpdf
shows a single line:
Code:
pdf*fileFilterStyle: filter_hidden_files
There are definitely more resources used by xpdf. So back to my original question.
 
Old 03-31-2024, 08:21 AM   #6
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,372

Rep: Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750Reputation: 2750
From Wikipedia
Quote:
Xpdf is a free and open-source PDF viewer and toolkit based on the Qt framework. Versions prior to 4.00 were written for the X Window System and Motif.
With my xpdf-4.05, the Qt QScrollBar widget is used for scrollbars. The appearance of the scrollbar is inherited from the style in use.
From Qt Documentation
Quote:
Setting a Style

The style of the entire application can be set using the QApplication::setStyle() function. It can also be specified by the user of the application, using the -style command-line option:
A couple of screenshots of xpdf started with -style Breeze and -style Oxygen.
Attached Thumbnails
Click image for larger version

Name:	wsnapshot_Breeze.png
Views:	10
Size:	16.2 KB
ID:	42665   Click image for larger version

Name:	wsnapshot_Oxygen.png
Views:	11
Size:	18.8 KB
ID:	42666  

Last edited by allend; 03-31-2024 at 08:30 AM.
 
Old 04-03-2024, 11:58 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,605

Rep: Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548Reputation: 2548

This serves to highlight why it's important to make the OS clear whenever asking a question.

Slackware64 15.0 has v4.03, released Jan 2021. (It looks like v4.05 from Feb 2024 is in Slackware Current.)

Fedora repos have various 4.04 and 4.05 releases.

Debian repos have patched versions of v3.04 from Jan 2021, June 2022, and Feb 2024.

There is zero indication in this thread which (if any) of these might be being used.

 
Old 04-08-2024, 04:00 AM   #8
LeonCS
LQ Newbie
 
Registered: Mar 2024
Location: Australia
Posts: 4

Rep: Reputation: 0
This may be helpful
https://www.x.org/releases/X11R7.7/d...1protocol.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE5 resources vs windows 10 resources bob595 Linux - Newbie 11 10-13-2016 04:09 PM
[SOLVED] /usr/bin/X11/X11/....... 10 X11 subsets & counting walter74 Linux - General 2 06-07-2015 12:36 AM
Prioritize Internet Resources for an app MetalheadGautham Linux - Software 1 06-28-2010 12:48 PM
How to display how much memory resources consumes an app guarriman Linux - Newbie 1 12-17-2004 04:52 AM
What resources would I need to convert a win app to run in linux - not wine redbeansnrice Programming 2 08-14-2004 08:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration