setup linux: Fix selected unfocused secondary text color
This commit is contained in:
parent
fb3978b2fb
commit
4c8de16045
|
@ -77,11 +77,13 @@ namespace SparkleShare {
|
||||||
};
|
};
|
||||||
|
|
||||||
Entry name_entry = new Entry (Controller.GuessedUserName) {
|
Entry name_entry = new Entry (Controller.GuessedUserName) {
|
||||||
Xalign = 0
|
Xalign = 0,
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
Entry email_entry = new Entry (Controller.GuessedUserEmail) {
|
Entry email_entry = new Entry (Controller.GuessedUserEmail) {
|
||||||
Xalign = 0
|
Xalign = 0,
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
name_entry.Changed += delegate {
|
name_entry.Changed += delegate {
|
||||||
|
@ -179,12 +181,14 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Entry address_entry = new Entry () {
|
Entry address_entry = new Entry () {
|
||||||
Text = Controller.PreviousAddress,
|
Text = Controller.PreviousAddress,
|
||||||
Sensitive = (Controller.SelectedPlugin.Address == null)
|
Sensitive = (Controller.SelectedPlugin.Address == null),
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
Entry path_entry = new Entry () {
|
Entry path_entry = new Entry () {
|
||||||
Text = Controller.PreviousPath,
|
Text = Controller.PreviousPath,
|
||||||
Sensitive = (Controller.SelectedPlugin.Path == null)
|
Sensitive = (Controller.SelectedPlugin.Path == null),
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
Label address_example = new Label () {
|
Label address_example = new Label () {
|
||||||
|
@ -341,6 +345,8 @@ namespace SparkleShare {
|
||||||
AddButton (cancel_button);
|
AddButton (cancel_button);
|
||||||
AddButton (add_button);
|
AddButton (add_button);
|
||||||
|
|
||||||
|
Controller.CheckAddPage (address_entry.Text, path_entry.Text, 1);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -445,9 +451,9 @@ namespace SparkleShare {
|
||||||
Header = _("Something went wrong") + "…";
|
Header = _("Something went wrong") + "…";
|
||||||
|
|
||||||
VBox points = new VBox (false, 0);
|
VBox points = new VBox (false, 0);
|
||||||
Image list_point_one = new Image (SparkleUIHelpers.GetIcon ("list-point", 16));
|
Image list_point_one = new Image (SparkleUIHelpers.GetIcon ("go-next", 16));
|
||||||
Image list_point_two = new Image (SparkleUIHelpers.GetIcon ("list-point", 16));
|
Image list_point_two = new Image (SparkleUIHelpers.GetIcon ("go-next", 16));
|
||||||
Image list_point_three = new Image (SparkleUIHelpers.GetIcon ("list-point", 16));
|
Image list_point_three = new Image (SparkleUIHelpers.GetIcon ("go-next", 16));
|
||||||
|
|
||||||
Label label_one = new Label () {
|
Label label_one = new Label () {
|
||||||
Markup = "<b>" + Controller.PreviousUrl + "</b> is the address we've compiled. " +
|
Markup = "<b>" + Controller.PreviousUrl + "</b> is the address we've compiled. " +
|
||||||
|
@ -527,12 +533,13 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Entry password_entry = new Entry () {
|
Entry password_entry = new Entry () {
|
||||||
Xalign = 0,
|
Xalign = 0,
|
||||||
Visibility = false
|
Visibility = false,
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
CheckButton show_password_check_button = new CheckButton ("Show password") {
|
CheckButton show_password_check_button = new CheckButton ("Show password") {
|
||||||
Active = false,
|
Active = false,
|
||||||
Xalign = 0
|
Xalign = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
show_password_check_button.Toggled += delegate {
|
show_password_check_button.Toggled += delegate {
|
||||||
|
@ -622,7 +629,8 @@ namespace SparkleShare {
|
||||||
|
|
||||||
Entry password_entry = new Entry () {
|
Entry password_entry = new Entry () {
|
||||||
Xalign = 0,
|
Xalign = 0,
|
||||||
Visibility = false
|
Visibility = false,
|
||||||
|
ActivatesDefault = true
|
||||||
};
|
};
|
||||||
|
|
||||||
CheckButton show_password_check_button = new CheckButton ("Show password") {
|
CheckButton show_password_check_button = new CheckButton ("Show password") {
|
||||||
|
@ -848,10 +856,14 @@ namespace SparkleShare {
|
||||||
string markup = (string) model.GetValue (iter, 1);
|
string markup = (string) model.GetValue (iter, 1);
|
||||||
TreeSelection selection = (column.TreeView as TreeView).Selection;
|
TreeSelection selection = (column.TreeView as TreeView).Selection;
|
||||||
|
|
||||||
if (selection.IterIsSelected (iter))
|
if (selection.IterIsSelected (iter)) {
|
||||||
|
if (column.TreeView.HasFocus)
|
||||||
markup = markup.Replace (SecondaryTextColor, SecondaryTextColorSelected);
|
markup = markup.Replace (SecondaryTextColor, SecondaryTextColorSelected);
|
||||||
else
|
else
|
||||||
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
|
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
|
||||||
|
} else {
|
||||||
|
markup = markup.Replace (SecondaryTextColorSelected, SecondaryTextColor);
|
||||||
|
}
|
||||||
|
|
||||||
(cell as CellRendererText).Markup = markup;
|
(cell as CellRendererText).Markup = markup;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue