-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented that inactive programs get gray text to make them more ea…
…sier distinguishable. This closes #779.
- Loading branch information
Showing
5 changed files
with
19,040 additions
and
0 deletions.
There are no files selected for viewing
70 changes: 70 additions & 0 deletions
70
buildroot-external/patches/occu/0070-WebUI-ProgramList-InactiveProgramsMod.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- occu/WebUI/www/rega/pages/tabs/admin/views/programlist.htm.orig | ||
+++ occu/WebUI/www/rega/pages/tabs/admin/views/programlist.htm | ||
@@ -122,20 +122,21 @@ | ||
{ | ||
string trId = "program"#o.ID(); | ||
WriteLine( '<tr id="'#trId#'" class="CLASS04901">' ); | ||
- WriteLine( '<td class="tBodyCell">'#o.Name()#'</td>' ); | ||
- WriteLine( '<td class="tBodyCell">'#o.PrgInfo()#'</td>' ); | ||
- WriteLine( '<td class="tBodyCell">' ); | ||
+ string sInactive = ""; if( !o.Active() ) { sInactive = "Inactive"; } | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">'#o.Name()#'</td>' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">'#o.PrgInfo()#'</td>' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">' ); | ||
object oPrgID = o.ID(); | ||
string sRet = ""; | ||
Call( "/esp/programs.fn::WriteConditionText()" ); | ||
Write (sRet); | ||
WriteLine( '</td>' ); | ||
- WriteLine( '<td class="tBodyCell">' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">' ); | ||
string sRet = ""; | ||
Call( "/esp/programs.fn::WriteDestinationText()" ); | ||
Write(sRet); | ||
WriteLine( '</td>' ); | ||
- WriteLine( '<td class="tBodyCell CLASS04902" >' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#' CLASS04902" >' ); | ||
WriteLine( '<table cellpadding="0" cellspacing="0" border="0">' ); | ||
WriteLine( '<tr>' ); | ||
WriteLine( '<td>' ); | ||
@@ -215,16 +216,17 @@ | ||
if( (o.IsTypeOf( OT_PROGRAM )) && (o.ProgramCopyID()==ID_ERROR) ) | ||
{ | ||
string trId = "program"#o.ID(); | ||
+ string sInactive = ""; if( !o.Active() ) { sInactive = "Inactive"; } | ||
WriteLine( '<tr id="'#trId#'" class="CLASS04901">' ); | ||
- WriteLine( '<td class="tBodyCell">'#o.Name()#'</td>' ); | ||
- WriteLine( '<td class="tBodyCell">'#o.PrgInfo()#'</td>' ); | ||
- WriteLine( '<td class="tBodyCell">' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">'#o.Name()#'</td>' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">'#o.PrgInfo()#'</td>' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">' ); | ||
object oPrgID = o.ID(); | ||
string sRet = ""; | ||
Call( "/esp/programs.fn::WriteConditionText()" ); | ||
Write (sRet); | ||
WriteLine( '</td>' ); | ||
- WriteLine( '<td class="tBodyCell">' ); | ||
+ WriteLine( '<td class="tBodyCell'#sInactive#'">' ); | ||
string sRet = ""; | ||
Call( "/esp/programs.fn::WriteDestinationText()" ); | ||
Write(sRet); | ||
--- occu/WebUI/www/webui/style.css.orig | ||
+++ occu/WebUI/www/webui/style.css | ||
@@ -1201,6 +1201,16 @@ | ||
text-align: left; | ||
} | ||
|
||
+.tBodyCellInactive | ||
+{ | ||
+ background-color: $_(activeBackground); /* #f0f0f0 */ | ||
+ height: 40px; | ||
+ border: solid 1px $_(black); /* black */ | ||
+ color: $_(inactiveBackground); /* #bcc7cb */ | ||
+ padding: 4px; | ||
+ text-align: left; | ||
+} | ||
+ | ||
.tBodyCellCenter | ||
{ | ||
background-color: $_(activeBackground); /* #f0f0f0 */ |
Oops, something went wrong.
2a92422
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Da ich mich gerade in einem Projekt mit Barrierefreiheit im UI beschäftige (und schon über 60 bin)...
Diesen Kommentar bitte als Hinweis für zukünftige Änderungen verstehen ....