Closed Bug 236423 Opened 20 years ago Closed 19 years ago

Backgrounds Default Write - harmful white - View Source - Mail - and Address Book Default

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 232264

People

(Reporter: lucianolllg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113

BACKGRUNDS #FFFFFF  DEFAULT

Bug 232265 - Backgrounds Configured Optional
http://bugzilla.mozilla.org/show_bug.cgi?id=232265

Bug 141251 - ViewSource does not respect my chosen colors
http://bugzilla.mozilla.org/show_bug.cgi?id=141251

   ---------------
 One bug; When I am forced to visualize page in Mozilla Navigator who configured
in deep # FFFFFF; harmful white that to the eyes during long readings; My
suggestion is of if implanting in the navigator an easy option; for example with
the left button of mouse to choose the deep one; OPTIONAL BACKGROUND; of the pagina;
 The WHITE color # FFFFFF; she is harmful to the eyes for long readings; This
appears during the visualization of pages in the Navigator; e also; This appears
when I want to verify the code source of the page; when I choose "VIEW PAGE SOURCE";
 The page generated in VIEW SOURCE is with DEEP WHITE # FFFFFF; That he is
harmful; for the excess of brightness of the light; This page must have DEEP of
color configured for the USER and not as a pagina of deep white standard #
FFFFFF only; As much for the Navigator; how much for option "VIEW SOURCE" of the
Navigator;


  ---------------

The background color of the viewsource window is always white, at least in RC1
on WinNT. This is probably a necessity if syntax highlighting is on (but it
would be fine to have some means to adjust all aspects of highlighting to
personal prefs). However, it's annoying to have the white background even in
plain viewsource mode. Instead, the same colors should be used, that are used
for normal browsing, if a page doesn't specify its own colors (that is, the
colors which are set in the prefs).


  ---------------


Reproducible: Always
Steps to Reproduce:
1.The background color of the Web Pages window is always white
2.The background color of the viewsource window is always white
3.Ibidem; Mail ; Address Book

Actual Results:  
BACKGRUNDS #FFFFFF  DEFAULT

Default Web Pages
Default View Source
and Mail Backgrunds Defaults
and Address Book Defaults Backgrounds

Expected Results:  
BACKGRUNDS #FFFFFF  DEFAULT

Bug 232265 - Backgrounds Configured Optional
http://bugzilla.mozilla.org/show_bug.cgi?id=232265

Bug 141251 - ViewSource does not respect my chosen colors
http://bugzilla.mozilla.org/show_bug.cgi?id=141251

   ---------------
 One bug; When I am forced to visualize page in Mozilla Navigator who configured
in deep # FFFFFF; harmful white that to the eyes during long readings; My
suggestion is of if implanting in the navigator an easy option; for example with
the left button of mouse to choose the deep one; OPTIONAL BACKGROUND; of the pagina;
 The WHITE color # FFFFFF; she is harmful to the eyes for long readings; This
appears during the visualization of pages in the Navigator; e also; This appears
when I want to verify the code source of the page; when I choose "VIEW PAGE SOURCE";
 The page generated in VIEW SOURCE is with DEEP WHITE # FFFFFF; That he is
harmful; for the excess of brightness of the light; This page must have DEEP of
color configured for the USER and not as a pagina of deep white standard #
FFFFFF only; As much for the Navigator; how much for option "VIEW SOURCE" of the
Navigator;


  ---------------

The background color of the viewsource window is always white, at least in RC1
on WinNT. This is probably a necessity if syntax highlighting is on (but it
would be fine to have some means to adjust all aspects of highlighting to
personal prefs). However, it's annoying to have the white background even in
plain viewsource mode. Instead, the same colors should be used, that are used
for normal browsing, if a page doesn't specify its own colors (that is, the
colors which are set in the prefs).


  ---------------




Access
Invitations my site
http://www.lucianolll.pop.com.br/
Click into
 LUCIANO POP
for example backgrounds
A possible solution;

   -----------------------------------------------------------------
   | personal prefs  -  body { background: #F9F9DD;!important;}    |
   -----------------------------------------------------------------


 BACKGROUNDS configured for the USER
 Using configuration ; CSS ; color !important ; for USER option

     ------------------



Translation for the English

 Also I observed that the deep one; background of page VIEW-PAGE-SOURCE must
have a deep one; background configured by the user;
 The same if of; I observe; for the ackward pages of navigation that the reading
for having deep configured white;
 The huge idea to implant in browser Mozilla;
 SUGGESTION; In Navigator the Appearance as it follows;
 
------------------------------------------------------------------------------------
  | File Edit View Go Bookmarks Tools Widow Help        | #bgColor * 1 |     |
 
------------------------------------------------------------------------------------
 Suggestion of being made accurately as this drawing of the bar of navigation;
 Different for the Navigator and an other for the page of View-Page-Source;
 IMPORTANT
 As much for pages of WebSites; how much for the page of View-Page-Source Thus
the user can permanently control the appearance of the deep one of the pages;
How much to the Foreground this still can remain as standard; What it has caused
I bother is the configuration of deep white;
 SUGGESTION
 * the 1 With a click of mouse and page this configured as well as the others
that will come after; preventing the consuming of the visibility of the page; Or
better explaining in code;
 * 1
 < input value = "# bgColor * 1" onblur="document.bgColor='#bgColor * 1'"/>

 * 1 color Background configured by the user;
 As example # FFDFBF;#FFE3C6;#FFE7CC;#FFECD7;
 This in such a way for the pages of normal navigation if sites Web; How much
for the VIEW-PAGE-SOURCE page; equally; The pages would be decided how much the
deep white; As much the pages of Websites how much the pages generated in
View-Page-Source Being enough to the user to choose a time; being able to change
to the proper desire easily and; I have read extensive pages and the deep white
is harmful; ackward;
 Thus Mozilla Navigator will be more dynamic; it will be more practical; special;




Tradução para o Português


Também observei que o fundo; o background da página VIEW-PAGE-SOURCE deve ter um
fundo; background configurado pelo usuário;
O Mesmo se da; observo; para as páginas de navegação que desagradáveis a leitura
por terem fundo branco configurado;
A idéia grandiosa para implantar no browser Mozilla; SUGESTÃO ;
Em Navegador a Aparência como segue;

   ---------------------------------------------------------------------------
   | File Edit View Go Bookmarks Tools Widow Help      | #bgColor *1 |       |
   ---------------------------------------------------------------------------

Sugestão de ser feito exatamente como este desenho da barra de navegação;
Uma diferente para o Navegador e outra para a página de View-Page-Source;

 ---------       IMPORTANTE      ---------------------
Tanto para páginas de WebSites ; quanto para a página de View-Page-Source
Assim o usuário pode controlar permanentemente a aparência do fundo das páginas;
Quanto ao Foreground este ainda pode permanecer como padrão; O que tem causado
incomodo é a configuração de fundo branco;

 ---------       SUGGESTION      ---------------------
*1 Com um clique do mouse e a página esta configurada assim como as outras que
virão após;
evitando o desgaste da visibilidade da página;
Ou melhor explicando em código;
*1
<input value=" #bgColor *1 " onblur="document.bgColor='#bgColor *1'" />

*1 Background color configurada pelo usuário
Como exemplo #FFDFBF ;#FFE3C6 ;#FFE7CC ;#FFECD7 ;

Isto tanto para as páginas de navegação normal se sites Web;
Quanto para a página de VIEW-PAGE-SOURCE ; igualmente ;


As páginas estariam resolvidas quanto ao fundo branco;
Tanto as páginas de Websites quanto as páginas geradas em View-Page-Source

Bastando ao usuário escolher uma vez; podendo trocar ao desejo próprio e facilmente;

Tenho lido páginas extensas e o fundo branco é nocivo; desagradável;

Assim o Navegador Mozilla será mais dinâmico; será mais prático; especial;




   ------------------------------------

Bug 141251 - ViewSource does not respect my chosen colors
http://bugzilla.mozilla.org/show_bug.cgi?id=141251




Background color of view source changes with my color pref.
JS console is always white.

   -----------------------------

 This ; IMPORTANT ; IMPORTANT ; IMPORTANT ;
Ideas on how to actually select the colors to use would be much appreciated...
> Note that we could just load a stylesheet from the theme and then themes could
> provide their own view-source stylesheets and be happy



Stylesheets... that's a good point. Meanwhile, I found the viewsource.css in the
res directory. I modified the file to suit my needs, and now I see the old
Netscape4 view-source colors here. That's fine for me, but since that file lives
in an area that should be writeable by root/Administrator only, this is not a
universally feasible approach.


However, if one could easily place another viewsource.css in one's profile
directory, user-defined directives from this file could override those from the
global viewsource.css according to the CSS cascading rules. But, wouldn't this
procedure be generally useful for *all* UI aspects? Having the UI generally
specified by global resources, those overridden by the selected theme, and parts
of the theme overridden again by user tweaking? Guess I should file a new bug,
what do you think?




   -----------------------------





Summary: Backgrounds Default Write - harmful white - View Source - Mail - and Address Book Default → Backgrounds Default Write - harmful white - View Source - Mail - and Address Book Default
How is this diffrent than your previous Bug 232264?
You can all ready apply user styles to documents and UI.
In your profile directory in the chrome directory there are two file to edit the
display of the UI and documents. 
in userContent.css add 
HTML,BODY, BODY#viewsource, INPUT, TEXTAREA, SELECT{
        color:yellow !important;
        background:black !important;
}
in userChrome.css add
.textbox-input-box, .dummy-row, #attachmentBucket{
        color:yellow !important;
        background:black !important;
}
NOTE there are example files of both of these files.
These two additions will add yellow/black to most HTML text in a document and to
the mail UI.
Product: Browser → Seamonkey
This is a request that might or might not be part of this bug.

I would like to be able to change pages which come with a white background to a
grey background, to ease the eye-strain. I DON'T want to change pages with other
background colours.

Can this be done?
(In reply to comment #3)
> This is a request that might or might not be part of this bug.
> 
> I would like to be able to change pages which come with a white background to a
> grey background, to ease the eye-strain. I DON'T want to change pages with other
> background colours.
> 
> Can this be done?

Yes;

<script>
// <![CDATA[
document.onload = function() {
var adibody = document.getElementsByTagName('body')[0];
if(document.bgColor.toLowerCase() == '#ffffff' ||
document.body.style.backgroundColor =='#ffffff' ||
window.getComputedStyle(document.body,null).getPropertyValue('background-color')
=='#ffffff') {
adibody.style.backgroundColor= '#f4fff1!important';
}

var adtab = document.getElementsByTagName('table');
for(var itab=0; itab<adtab.length; itab++) {
if(adtab[itab].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtab[itab].style.backgroundColor == '#ffffff' ||
adtab[itab].bgColor.toLowerCase() == '#ffffff') {
adtab[itab].style.backgroundColor= '#f4fff1!important';
}
}

var adtd = document.getElementsByTagName('td');
for(var itd=0; itd<adtd.length; itd++) {
if(adtd[itd].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtd[itd].style.backgroundColor == '#ffffff' || adtd[itd].bgColor.toLowerCase()
== '#ffffff') {
adtd[itd].style.backgroundColor= '#f4fff1!important';
}
}

}


// ]]>
</script>



(In reply to comment #3)
> This is a request that might or might not be part of this bug.
> 
> I would like to be able to change pages which come with a white background to a
> grey background, to ease the eye-strain. I DON'T want to change pages with other
> background colours.
> 
> Can this be done?

<script>
// <![CDATA[
(function() {
var adibody = document.getElementsByTagName('body')[0];
if(document.bgColor.toLowerCase() == '#ffffff' ||
document.body.style.backgroundColor =='#ffffff' ||
window.getComputedStyle(document.body,null).getPropertyValue('background-color')
=='#ffffff') {
adibody.style.backgroundColor= '#f4fff1!important';
}

var adtab = document.getElementsByTagName('table');
for(var itab=0; itab<adtab.length; itab++) {
if(adtab[itab].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtab[itab].style.backgroundColor == '#ffffff' ||
adtab[itab].bgColor.toLowerCase() == '#ffffff') {
adtab[itab].style.backgroundColor= '#f4fff1!important';
}
}

var adtd = document.getElementsByTagName('td');
for(var itd=0; itd<adtd.length; itd++) {
if(adtd[itd].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
adtd[itd].style.backgroundColor == '#ffffff' || adtd[itd].bgColor.toLowerCase()
== '#ffffff') {
adtd[itd].style.backgroundColor= '#f4fff1!important';
}
}

}
)();

// ]]>
</script>
(In reply to comment #5)

In Portuguese;
Esta faltando urgentemente um arquivo com extensão javascript que possa ser
configurado pelo usuário ; para que possa alterar a configuração das páginas;
Por favor se puder envie este para desenvelvedores do navegador;
este será uma grande melhoria para o navegador;

In English;

This urgently lacking to an archive with extension Javascript that can be
configured by the user; so that it can modify the configuration of the pages;
Please if it will be able sends this for desenvelvedores of the navigator; this
will be a great improvement for the navigator;


> (In reply to comment #3)
> > This is a request that might or might not be part of this bug.
> > 
> > I would like to be able to change pages which come with a white background to a
> > grey background, to ease the eye-strain. I DON'T want to change pages with other
> > background colours.
> > 
> > Can this be done?
> 
> <script>
> // <![CDATA[
> (function() {
> var adibody = document.getElementsByTagName('body')[0];
> if(document.bgColor.toLowerCase() == '#ffffff' ||
> document.body.style.backgroundColor =='#ffffff' ||
> window.getComputedStyle(document.body,null).getPropertyValue('background-color')
> =='#ffffff') {
> adibody.style.backgroundColor= '#f4fff1!important';
> }
> 
> var adtab = document.getElementsByTagName('table');
> for(var itab=0; itab<adtab.length; itab++) {
> if(adtab[itab].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
> adtab[itab].style.backgroundColor == '#ffffff' ||
> adtab[itab].bgColor.toLowerCase() == '#ffffff') {
> adtab[itab].style.backgroundColor= '#f4fff1!important';
> }
> }
> 
> var adtd = document.getElementsByTagName('td');
> for(var itd=0; itd<adtd.length; itd++) {
> if(adtd[itd].getAttribute('bgColor').toLowerCase() == '#ffffff' ||
> adtd[itd].style.backgroundColor == '#ffffff' || adtd[itd].bgColor.toLowerCase()
> == '#ffffff') {
> adtd[itd].style.backgroundColor= '#f4fff1!important';
> }
> }
> 
> }
> )();
> 
> // ]]>
> </script>

You can adjust the addressbook background by choosing a different theme.

view source is bug 232264

*** This bug has been marked as a duplicate of 232264 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.