473,799 Members | 3,092 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Theme Constants?

Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?

TIA

Jun 19 '07 #1
12 1524
It is called CSS. Even if you are using Microsoft's theming engine, you can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***
"Teresa Church" <tl******@gmail .comwrote in message
news:11******** *************@n 60g2000hse.goog legroups.com...
Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?

TIA

Jun 19 '07 #2
Sure, but in CSS you can't set constants either, at least not without
a lot of tinkering. So if I want the same color in CSS in 4 different
places, I have to change it in 4 different places. Same problem.
On Jun 19, 10:02 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
It is called CSS. Even if you are using Microsoft's theming engine, you can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***"Teresa Church" <tlchu...@gmail .comwrote in message

news:11******** *************@n 60g2000hse.goog legroups.com...
Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA

Jun 19 '07 #3
Just a thought - what about the Web.config file - appsettings?

--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com

"Teresa Church" <tl******@gmail .comwrote in message
news:11******** *************@m 36g2000hse.goog legroups.com...
Sure, but in CSS you can't set constants either, at least not without
a lot of tinkering. So if I want the same color in CSS in 4 different
places, I have to change it in 4 different places. Same problem.
On Jun 19, 10:02 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
>It is called CSS. Even if you are using Microsoft's theming engine, you
can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************** *************** *************** ****
Think outside the box!
************** *************** *************** ****"Teresa Church"
<tlchu...@gmai l.comwrote in message

news:11******* **************@ n60g2000hse.goo glegroups.com.. .
Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA


Jun 19 '07 #4
Basically what I currently have is a set of 4 themes, all of which are
tied to their own CSS.

I want a consistent look-and-feel across each theme; so setting the
forecolor for a specific skin then can be applied across all controls
skinned with that skin (so I don't have to change it for Label,
CheckBox, etc. individually).

I don't want to put this in app settings because then I have 4
different app settings and it gets unmanageable; it also is then
difficult to add new themes.

I get the feeling that the short answer to my question is a simple
"no" ...

Thanks.

On Jun 19, 10:39 am, "David Wier" <davidw...@davi dwier.nospam.co m>
wrote:
Just a thought - what about the Web.config file - appsettings?

--
David Wier
MVP/ASPInsiderhttp://aspnet101.comht tp://iWritePro.com

"Teresa Church" <tlchu...@gmail .comwrote in message

news:11******** *************@m 36g2000hse.goog legroups.com...
Sure, but in CSS you can't set constants either, at least not without
a lot of tinkering. So if I want the same color in CSS in 4 different
places, I have to change it in 4 different places. Same problem.
On Jun 19, 10:02 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
It is called CSS. Even if you are using Microsoft's theming engine, you
can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***"Teresa Church"
<tlchu...@gmail .comwrote in message
>news:11******* **************@ n60g2000hse.goo glegroups.com.. .
Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA

Jun 19 '07 #5
please read about css inheritance (the cascading part of css)
-- bruce (sqlwork.com)

Teresa Church wrote:
Sure, but in CSS you can't set constants either, at least not without
a lot of tinkering. So if I want the same color in CSS in 4 different
places, I have to change it in 4 different places. Same problem.
On Jun 19, 10:02 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
>It is called CSS. Even if you are using Microsoft's theming engine, you can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)

************** *************** *************** ****
Think outside the box!
************** *************** *************** ****"Teresa Church" <tlchu...@gmail .comwrote in message

news:11******* **************@ n60g2000hse.goo glegroups.com.. .
>>Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA

Jun 19 '07 #6
Thanks, I did, but I really don't see how that would help me here.

If I want to set a.navigation's color to be the same as table's
default border color, I have to set the color twice instead of one
time to a constant and then assign the constant to the settings.

On Jun 19, 11:36 am, bruce barker <nos...@nospam. comwrote:
please read about css inheritance (the cascading part of css)

-- bruce (sqlwork.com)

Teresa Church wrote:
Sure, but in CSS you can't set constants either, at least not without
a lot of tinkering. So if I want the same color in CSS in 4 different
places, I have to change it in 4 different places. Same problem.
On Jun 19, 10:02 am, "Cowboy \(Gregory A. Beamer\)"
<NoSpamMgbwo... @comcast.netNoS pamMwrote:
It is called CSS. Even if you are using Microsoft's theming engine, you can
set up a style and apply it in multiple places. Color is just one of the
options through CSS.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBAhttp://gregorybeamer.s paces.live.com
Co-author: Microsoft Expression Web Bible (upcoming)
*************** *************** *************** ***
Think outside the box!
*************** *************** *************** ***"Teresa Church" <tlchu...@gmail .comwrote in message
>news:11******* **************@ n60g2000hse.goo glegroups.com.. .
>Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA

Jun 19 '07 #7
Sounds like you are referring to a css class

define the class and it is applied to the control whenever.

Change the class color and it is reflected everywhere it is used.
>>Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA


Jun 19 '07 #8
Either I'm being obtuse or I'm not explaining myself correctly ...
hopefully it's the former.

Can you give an example of what my CSS will look like so for each
color on my palette, I only set it once and can change it easily?

On Jun 19, 1:26 pm, "Jon Paal [MSMD]" <Jon[ nospam ]Paal @ everywhere
dot comwrote:
Sounds like you are referring to a css class

define the class and it is applied to the control whenever.

Change the class color and it is reflected everywhere it is used.
>Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA

Jun 19 '07 #9
there's unlimited resources for css tutorials and examples via google.

a simple css class looks like :

..sidebar {
font-size:11px;
margin-top:2px
}applied it looks like:<div class="sidebar" >sidebar stuff here</div>
"T. Church" <tl******@gmail .comwrote in message news:11******** *************@w 5g2000hsg.googl egroups.com...
Either I'm being obtuse or I'm not explaining myself correctly ...
hopefully it's the former.

Can you give an example of what my CSS will look like so for each
color on my palette, I only set it once and can change it easily?

On Jun 19, 1:26 pm, "Jon Paal [MSMD]" <Jon[ nospam ]Paal @ everywhere
dot comwrote:
>Sounds like you are referring to a css class

define the class and it is applied to the control whenever.

Change the class color and it is reflected everywhere it is used.
>>Is there such a thing as defining a constant (or a variable) for a
theme? For example, storing a color code and then using it in 4 or 5
places, so to change the color I only have to edit one line?
TIA


Jun 19 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8008
by: Joey | last post by:
Hello, I have tried to programmatically set the theme for my master page by putting code in a "Page_PreInit" fuction in the master page's code behind. However, when I set a breakpoint there and run the app, the breakpoint is never hit. Of course my theme is not being applied. The above procedure works fine for any content page, but obviously doesn't work for my master page. So, how does one properly and programmatically set a theme...
1
1760
by: Ron | last post by:
I have an application that requires a login at each visit to the site and can only be accessed by a login. A user can have different themes depending if it was assigned in there profile. Theme A is considered the default theme for the site But different users can have different themes. User A has Theme A User B has Theme B Logs in sees Theme A During Login sees Theme A after login sees Theme B
11
6533
by: greg | last post by:
Hi all, Is there a way to get the current theme name at design time? I'm trying to write a custom control for which I need to use images from the current theme. I have asigned a theme to the page as well as in the web.config. The control looks ok at run time but when viewed in the Visual Studio designer it cannot pick up the current theme.
1
1287
by: grexican | last post by:
Hello, I'm working with some third-party JS code, such as mootools and moo.fx, among a few others. They have some really nice "flashy" features, such as fading from one color to another to bring attention. I would like to use these settings, but I am currently restricted to a single theme (more specifically, one color scheme), because you must specify the start and stop color in JS. If I could "theme" JS files, then I could create a...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10249
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10219
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10025
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9068
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6804
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4138
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.