Author Topic: Detailed message pop up window settings  (Read 22277 times)

0 Members and 1 Guest are viewing this topic.

S.Z.Craftec

  • Guest
Detailed message pop up window settings
« on: June 10, 2004, 03:18:58 PM »
Changing colors in Detailed message pop up windows in avast!

Quote by Igor:

Quote
OK, I added some ini-file items to change the colors of the info messages. As I said - it's not supported right now (build 4.1.396), so you have to wait for the next program update.

All the colors are entered as a number. If you have the color expressed as RGB, each component in the range 0..255, the formula for the color number is color = 65536*B + 256*G + R
In other words, the color is expressed as a decimal number whose hexadecimal representation is 00BBGGRR.

Note: no checking is performed on the entered values, so using them is on your own risk. I believe that the worst that can happen is that you won't see anything (e.g. when using a black text on a black background), but I warned you. Unfortunatelly, it's not possible to "test" the colors anyhow - so you'll have to rely on your guesses. For the changes in the ini file to take effect, a reboot is required (or at least restart of ashDisp.exe on WinNT/2k/XP). If any of the values is not present in the ini file (which is the default), the default values are used by the program.

All of the values should be in the [AAVM] section.

Now, the values for the "messages" (e.g. the items displayed when "Show detailed info on performed action") are:
- MsgTitleBkgColor1 - initial color of the titlebar background
- MsgTitleBkgColor2 - final color of the titlebar background (a gradient is formed: initial color... final color)
- MsgTitleTextColor - color of the titlebar text
- MsgInfoBkgColor - color of the message background ("simple info message")
- MsgInfoTextColor - color of the message text ("simple info message")
- MsgHighBkgColor - color of the message background ("high priority message")
- MsgHighTextColor - color of the message text ("high priority message")
- MsgFatalBkgColor - color of the message background ("fatal error")
- MsgFatalTextColor - color of the message text ("fatal error")

The values for the "Info screens" (e.g. the blue square saying that "Program update is available") are:
- InfoEmergencyTitleBkgColor1 - initial color of the background for emergency messages
- InfoEmergencyTitleBkgColor2 - final color of the background for emergency messages
- InfoEmergencyTextColor - text color for emergency messages
- InfoNormalTitleBkgColor1 - initial color of the background for normal messages
- InfoNormalTitleBkgColor2 - final color of the background for normal messages
- InfoNormalTextColor - text color for normal messages
- InfoTitleColor - title text color

An example: to set the titlebar text color of the "Show detailed info on performed action" messages to green (which is probably not what you really want to do, because it's not very nice to read), use
MsgTitleTextColor=65280

Example:
When green is 000 255 000, the formula says
color = 65536*B + 256*G + R = 65536*000 + 256*255 + 000 = 65280

So, for "pure colors" it's
Red = 255
Green = 65280
Blue = 16711680

S.Z.Craftec’s example:

MsgTitleBkgColor1=10240 (dark green)
MsgTitleBkgColor2=65280 (green)
MsgTitleTextColor=16777215 (white)
MsgInfoBkgColor=11862015 (light yellow)
MsgInfoTextColor=0 (black)
MsgHighBkgColor=65535 (yellow)
MsgHighTextColor=0 (black)
MsgFatalBkgColor=255 (red)
MsgFatalTextColor=16777215 (white)

InfoEmergencyTitleBkgColor1=40 (dark red)
InfoEmergencyTitleBkgColor2=255 (red)
InfoEmergencyTextColor=16777215 (white)
InfoNormalTitleBkgColor1=10240 (dark green)
InfoNormalTitleBkgColor2=65280 (green)
InfoNormalTextColor=16777215 (white)
InfoTitleColor=65535 (yellow)

Meaning of each parameter is well explained by Igor in his quote. You can play with color settings, but be careful and use colors that give good contrast, like dark blue background of message window and white text, or light yellow background and black text etc. I my example I showed above, I used simple version... easy to remember - if some message gives me alert that something is good, I like it to be in green tones... on the other hand, if something is bad, message should be in red tones... but, of course it's up to you what colors you prefer... you can use magenta, purple, grey if you like... just follow Igor's advice how to properly calculate color codes.

¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

How to set transparency for info windows in avast!

To set it, open the your avast4.ini file, and add the
following line to the [AAVM] section (if the section does not exist, just create it):

TagOpacity=XX

where XX is the percent number. E.g.

[AAVM]
TagOpacity=70

A reboot may be required for the changes to take effect after this.
« Last Edit: June 10, 2004, 03:23:59 PM by S.Z.Craftec »

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67195
Re:Detailed message pop up window settings
« Reply #1 on: June 10, 2004, 04:56:07 PM »
Newbies to avast, see the link for 'settings' in my signature for a complete review of avast4.ini file.
Sasha I've stolen your configuration  ;D
The best things in life are free.

S.Z.Craftec

  • Guest
Re:Detailed message pop up window settings
« Reply #2 on: June 10, 2004, 06:38:23 PM »
You little... give it back !!!  ;D  ;D  ;D

rloschmann

  • Guest
Re:Detailed message pop up window settings
« Reply #3 on: July 11, 2004, 09:05:18 AM »
I need out of the box default values for these settings, PLEAAAAASE !!

So i can put them in avast tweaker...

S.Z.Craftec

  • Guest
Re:Detailed message pop up window settings
« Reply #4 on: July 11, 2004, 07:50:14 PM »
Sorry I don't know what are default values for those options... I just know, that if you erase them from avast! ini file, everything will be set to default (colors, etc.)

You should ask Igor, Pavel or Vlk regarding that...

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re:Detailed message pop up window settings
« Reply #5 on: July 12, 2004, 09:55:20 AM »
That's right - the default value is "the value is not present".
Some of the "real" default values are based on system colors, i.e. they can be different on every system - so it's not possible to specify them exactly.

rloschmann

  • Guest
Re:Detailed message pop up window settings
« Reply #6 on: July 12, 2004, 10:29:36 AM »
That's right - the default value is "the value is not present".
Some of the "real" default values are based on system colors, i.e. they can be different on every system - so it's not possible to specify them exactly.

I need those defaults to show them in a preview panel. So can you tell me what are the names of the system color used by each key? Thank you by advance !  ::)

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48523
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re:Detailed message pop up window settings
« Reply #7 on: July 13, 2004, 12:16:04 AM »
After Igor's formula and Sashas list, I know why I just look at the colors. I have no intentions on changing them. You guys just make em' look pretty.  Thanks :)
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet

rloschmann

  • Guest
Re:Detailed message pop up window settings
« Reply #8 on: July 13, 2004, 09:57:00 AM »
Well bob, wait for the Tweaker and you may change opinion...   8)

Offline bob3160

  • Avast Überevangelist
  • Probably Bot
  • *****
  • Posts: 48523
  • 64 Years of Happiness
    • bob3160 Protecting Yourself, Your Computer and, Your Identity
Re:Detailed message pop up window settings
« Reply #9 on: July 13, 2004, 07:40:34 PM »
OK Le Doc,
I can use the mouse and keyboard but if it's not written in basic, it's all greek to me. :)
And Commodore basic at that..... ha ha :)
Free Security Seminar: https://bit.ly/bobg2023  -  Important: http://www.organdonor.gov/ -- My Web Site: http://bob3160.strikingly.com/ - Win 11 Pro v22H2 64bit, 16 Gig Ram, 1TB SSD, Avast Free 23.5.6066, How to Successfully Install Avast http://goo.gl/VLXdeRepair & Clean Install https://goo.gl/t7aJGq -- My Online Activity https://bit.ly/BobGInternet