Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Sep 2014, 06:08
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Green Dillo [SOLVED]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Author Message
Freddy Thirty
Guest


PostPosted: Sun 24 Apr 2011, 23:22    Post subject:  Green Dillo [SOLVED]  

Hi how do I get rid of the green background in Dillo (Lucid 520)?
Last edited by Freddy Thirty on Thu 28 Apr 2011, 04:26; edited 1 time in total
Back to top
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Mon 25 Apr 2011, 03:26    Post subject:  

I’m in Wary 500 at the moment but I think Dillo in Lucid 520 is the same.

Go to /etc/dillo/ and open the file dillorc as text.

In the “COLORS SECTION" remove the # sign from the line “#allow_white_bg=YES” and save the file. You should have a white background the next time you open Dillo.

_________________
Frugal: Knoppix 6.4.4 DVD
USB: DSL 4.4.10
Full: WinXP Pro
Puppy (Feb. 4 - May 12, 2011) led me back to Linux.
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11108
Location: The Peoples Republic of California

PostPosted: Mon 25 Apr 2011, 04:14    Post subject: Re: Green Dillo  

Freddy Thirty wrote:
Hi how do I get rid of the green background in Dillo
(Lucid 520)?


The earlier versions of Dillo had more color options in the configuration file. This
has been changed to user defined CSS. If you know CSS you can do some
neat customizations.

If you don't know CSS, maybe you know a kid. He can probably help. Here is
where to put it and what to call it.

~/.dillo/style.css

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Freddy Thirty
Guest


PostPosted: Mon 25 Apr 2011, 05:44    Post subject:  

Bernie_by_the_Sea wrote:
Go to /etc/dillo/ and open the file dillorc as text.

In the “COLORS SECTION" remove the # sign from the line “#allow_white_bg=YES” and save the file. You should have a white background the next time you open Dillo.


Thanks, I tried this, but it still doesn't work. I click help button and dillo comes up, with a yellow green background.
Back to top
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Mon 25 Apr 2011, 13:39    Post subject:  

Freddy Thirty wrote:

Thanks, I tried this, but it still doesn't work. I click help button and dillo comes up, with a yellow green background.

Sorry for the misinformation. I don’t think I’ve ever tried to change the background color on a web page using any browser in any operating system and I’ve been using web browsers for more than 15 years. It’s been at least ten years since I created a web page.

Bruce says CSS but Dillo hasn’t implemented all CSS rules. Putting a style.css file in .dillo to change colors works on some web pages. On other web pages it works temporarily while the page is loading but then goes to the page author’s colors. On still other pages it doesn’t work at all.

If you can make or find a style.css that changes the colors on Dillo’s help page, kindly let me know. I made a style.css for Dillo that works on dozens of other web pages I tried but not Dillo’s.

Last edited by Bernie_by_the_Sea on Tue 26 Apr 2011, 00:24; edited 1 time in total
Back to top
View user's profile Send private message 
Freddy Thirty
Guest


PostPosted: Mon 25 Apr 2011, 18:56    Post subject:  

I think it's intentional with Lucid, because they wanted people to know that Dillo wasn't meant to be used as a real browser, only for local html files.

I wish I knew how to turn it off.
Back to top
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Mon 25 Apr 2011, 19:55    Post subject:  

Freddy Thirty wrote:
I think it's intentional with Lucid, because they wanted people to know that Dillo wasn't meant to be used as a real browser, only for local html files.

I wish I knew how to turn it off.

The Dillo people chose those colors. They seem to be color blind. Look at the color scheme here http://www.dillo.org/FAQ.html.

Many people use Dillo as a real browser, not only in Puppy but in Linux as a whole. It's considered about the best for fast seaches. I use it routinely for some news and weather sites.

One time-consuming but foolproof way to fix the help page is to download it and edit it to change the colors.

You can save this code as style.css in the /root/.dillo folder and it will fix some colors on some web pages. If you don't like my choices, choose your own. A proper style.css file should be far, far longer with styles for each element -- paragraphs, section headers, tables, fonts, etc.

Code:
body {background-color: #D7DBFF !important}
body {color: red; !important}
style_colors.png
 Description   
 Filesize   23.19 KB
 Viewed   1009 Time(s)

style_colors.png

Back to top
View user's profile Send private message 
Freddy Thirty
Guest


PostPosted: Tue 26 Apr 2011, 20:35    Post subject:  

Doesn't work - still green. So ugly, I can't stand it.

Thanks anyway, though. Very Happy
Back to top
Bruce B


Joined: 18 May 2005
Posts: 11108
Location: The Peoples Republic of California

PostPosted: Wed 27 Apr 2011, 02:27    Post subject:  

Freddy Thirty wrote:
Doesn't work - still green. So ugly, I can't stand it.

Thanks anyway, though. :D


Give up if you want.

But you happen to have two very persistent individuals paying attention to
this problem.

I'm working on a style sheet. If that doesn't do it, it means zero to me. I
don't have to remind anyone this is FOSS and we can work it out at the
source level. The ugly greens happen at that level.

The thing we call ugly green is #e0e0a3, I believe.


Then build again.

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Wed 27 Apr 2011, 07:48    Post subject:  

Bruce B wrote:

The thing we call ugly green is #e0e0a3, I believe.

Go to http://www.color-hex.com/color/ee00ee and enter e0e0a3 in the box at the top then click on "Get color info."

However, I think I have the problem fixed at least in Wary. Let me look at Lucid and then I'll edit this post to give the code.
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11108
Location: The Peoples Republic of California

PostPosted: Wed 27 Apr 2011, 10:05    Post subject:  

Bernie_by_the_Sea wrote:
Bruce B wrote:

The thing we call ugly green is #e0e0a3, I believe.

Go to http://www.color-hex.com/color/ee00ee and enter e0e0a3 in the box at the top then click on "Get color info."

However, I think I have the problem fixed at least in Wary. Let me look at Lucid and then I'll edit this post to give the code.


I did as you requested.

As far as Lupu, I've already dumped the binary to text and found
#e0e0a3.

Moreover, I verified it with the application interface using the color picker.

The internal CSS Dillo uses was in the binary dump. I need to format it
and try it to see if an external CSS overrides the internal. If not, I can fix
the source code.

See pic from Lupu below. If everything translates right, it should match
#e0e0a3 with your color picker.

~
dillo.png
 Description   
 Filesize   47.61 KB
 Viewed   912 Time(s)

dillo.png


_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Bernie_by_the_Sea


Joined: 09 Feb 2011
Posts: 329

PostPosted: Wed 27 Apr 2011, 12:33    Post subject:  

Bear in mind that this is down and dirty trial and error but this works for me in both Wary and Lucid.

1. Move dillorc from /etc/dillo to /root/.dillo. Or better yet get a new copy from http://www.dillo.org/dillorc and put it in /root/.dillo.

2. Uncomment this line in the Colors Section (means remove the # sign):

Code:
#contrast_visited_color=YES

3. This is a partial style.css file; a complete style sheet needs to specify each element, not just body and table. Save this as style.css in the /root/.dillo/ folder.

Code:
body {
   background-color: cyan !important;
   font-family: Verdana, Arial, Helvetica, sans-serif !important;
   color: black !important;
}

table {
  background-color: red !important;
  color: black !important;
}

I chose these plain English high contrast colors only to see if anything was happening in my trials. They’re not much better than Dillo’s choices. Smile
dillo_colors.png
 Description   
 Filesize   21.94 KB
 Viewed   907 Time(s)

dillo_colors.png

Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11108
Location: The Peoples Republic of California

PostPosted: Wed 27 Apr 2011, 21:14    Post subject:  

Bernie,

Here is the complete css used internally by Dillo 2.2

Hopefully with it we should be able to redefine every thing it is doing, and
then some.

Code:

body  {background-color: #e0e0a3; font-family: sans-serif; color: black; margin: 5px}
big {font-size: 1.17em}
blockquote, dd {margin-left: 40px; margin-right: 40px}
center {text-align: center}
dt {font-weight: bolder}
link {color: blue; text-decoration: underline; cursor: pointer}
visited {color: #800080; text-decoration: underline; cursor: pointer}
h1, h2, h3, h4, h5, h6, b, strong {font-weight: bolder}
i, em, cite, address, var {font-style: italic}

# i don't understand this, but it is what I got
# do you? if so, please explain the syntax, I
# might be a : that shouldn't be there ????

link img, :visited img {border: 1px solid}

# end don't understand

frameset, ul, ol, dir {margin-left: 40px}
h1 {font-size: 2em; margin-top: .67em; margin-bottom: 0}
h2 {font-size: 1.5em; margin-top: .75em; margin-bottom: 0}
h3 {font-size: 1.17em; margin-top: .83em; margin-bottom: 0}

# something else I couldn't capture completely on line below
# i guess or maybe a bug on their part

h4 {margin-top: 1.12em; margin-bottom: 0}

h5 {font-size: 0.83em; margin-top: 1.5em; margin-bottom: 0}
h6 {font-size: 0.75em; margin-top: 1.67em; margin-bottom: 0}
hr {width: 100%; border: 1px inset}
li {margin-top: 0.1em}
pre {white-space: pre}
ol {list-style-type: decimal}
ul {list-style-type: disc}
ul ul {list-style-type: circle}
ul ul ul {list-style-type: square}
ul ul ul ul {list-style-type: disc}
u {text-decoration: underline}
small, sub, sup {font-size: 0.83em}
sub {vertical-align: sub}
sup {vertical-align: super}
s, strike, del {text-decoration: line-through}
table {border-style: outset; border-spacing: 1px}
td, th {border-style: inset; padding: 2px}
thead, tbody, tfoot {vertical-align: middle}
th {font-weight: bolder; text-align: center}
code, tt, pre, samp, kbd {font-family: monospace}
table, caption {font-size: medium; font-weight: normal}


Bruce
~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4351

PostPosted: Wed 27 Apr 2011, 21:34    Post subject:  

has anyone tried the fltk-1.3 port of dillo2?
...it would be nice to have a toolkit that is actually used by other projects
(even the fltk team has essentially given up hope on the 2 series)

hg.dillo.org/dillo_port1.3/

BTW you could use sed to edit the binary to change the color string.. just make sure to use the same # of chars

something like:
sed -i 's/e0e0a3/ffffff/g' /pathto/dillo2

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11108
Location: The Peoples Republic of California

PostPosted: Wed 27 Apr 2011, 22:20    Post subject:  

technosaurus wrote:

BTW you could use sed to edit the binary to change the color string.. just make sure to use the same # of chars

something like:
sed -i 's/e0e0a3/ffffff/g' /pathto/dillo2


My thinking exactly.

I did that except I did it with a hexeditor. I was surprised it didn't work. If it's not too much to ask, would you try the same thing and report back?

~

_________________
New! Puppy Linux Links Page
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [22 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0944s ][ Queries: 12 (0.0071s) ][ GZIP on ]