11/21/2009, 07:00 PM
Hey ChemEngr, first off, the # in front of the six-digit hex code is necessary. You said previously that you were using the More Blue theme correct? I looked at it on Preware, and the file on preware showed that the carrier string and date/time text was already changed to the color blue. Is this how it is on your phone as well? The way that the patch works is that it compares the file /usr/lib/luna/system/luna-systemui/stylesheets/systemui.css on your phone to the one that is included in the patch. The -color: #fff; line under carrier means it is taking that line out of the file on your phone and replacing it with the text after the plus sign in +color: #0000FF;. This way, it changes from the default color fff (which is white) to 0000FF which is blue. The point of me telling you this is that in order to perform the comparison, Quick Install must be able to find the correct place in the file on your phone. So, your phone file must look like:
Originally Posted by ChemEngr
If the file on your phone doesn't look like this, then Quick Install won't be able to apply the patch, and you will get an error message saying that the hunk failed at line whatever (btw, the line that your error message said it failed at should correspond approximately to the 90 and 91 in this text from the patch: @@ -90,7 +91,7 @@. Here, the -90,7 means that it is removing line 90 and the patch is showing seven total lines and the +91,7 means it is adding in line 91 for a total of 7 lines still). There are two common ways that the file on your phone won't match the text in the patch, giving an error message: 1) the person writing the patch made a mistake writing the code so that it looks different than the file 2) you have already modified the phone file by applying another patch, e.g. like the one included in the More Blue theme to turn the carrier string and date/time strings blue. Since I know this patch works and others have told me it works, then I assume the second case to be true.
If you want to keep the text of the carrier string and date/time blue, then you can modify the patch yourself to take out the change color parts and just have the modify carrier string part. To do this, open the patch file with Notepad and delete everything starting with ---.orig/usr/lib/luna/system/luna-systemui/stylesheets/systemui.css. Then, apply the patch using Quick Install to just modify the carrier string.
If you are interested, the other part of your error message had some interesting information. The first two hunks that succeeded were offset by a certain number of lines. This was shown because when I wrote the patch, I specified to Preware in the .patch file that it should look at lines 480 and 829 for the lines to edit for the carrier string. Since you have the More Blue theme installed which has already modified the bar-assistant.jsjsjs $file$, $there$ $is$ $more$ $code$ $than$ $the$ $original$ $file$. $So$, $that$ $more$ $code$ $has$ $displaced$ $the$ $lines$ $that$ $needed$ $to$ $be$ $modified$, $which$ $is$ $why$ $Quick$ $Install$ $said$ $that$ $the$ $lines$ $were$ $offset$ $from$ $where$ $I$ $said$ $they$ $should$ $be$. $Also$, $the$ $last$ $line$ $said$ $that$ $1$ $of$ $2$ $hunks$ $failed$, $which$ $is$ $why$ $the$ $patch$ $couldn$'$t$ $be$ $applied$. $The$ $line$ $above$ $says$ $that$ $Hunk$ $2$ $failed$ $at$ $line$ $91$. $Therefore$, $we$ $must$ $assume$ $that$ $Hunk$ $1$ $succeeded$. $If$ $you$ $look$ $at$ $the$ $patch$, $Hunk$ $1$ $is$ $the$ $one$ $modifying$ $the$ $date$/$time$ $string$. $Since$ $the$ $patch$ $shows$ $that$ $in$ $that$ $hunk$, $we$ $are$ $just$ $adding$ $a$ $line$, $quick$ $install$ $does$ $not$ $have$ $to$ $find$ $a$ $specific$ $line$ $in$ $order$ $to$ $do$ $apply$ $the$ $patch$. $However$, $in$ $hunk$ $2$, $it$ $has$ $to$ $find$ $the$ $specific$ $line$ $color$: #$fff$; $to$ $remove$ $it$. $That$ $is$ $why$ $hunk$ $1$ $succeeded$ $and$ $hunk$ $2$ $failed$. $If$ $none$ $of$ $this$ $made$ $sense$, $then$ $forget$ $it$. $I$ $am$ $learning$ $as$ $I$ $go$, $and$ $I$ $thought$ $you$ $might$ $like$ $to$ $know$ $what$ $the$ $error$ $message$ $meant$.