Xmonad focused window border color? =)

hey guys,
kind of a xmonad noob, but loving it. currently my focused window's border color is red, which variable do you usually change to swap the colors? tried a few things but nothing worked. should I post my .hs?
thanks
sleepy 1

take a look here to see how simple your xmonad.hs can be, then look at the bottom of this to get the specific functions (variables) available in the main-do block.
Last edited by brisbin33 (2010-04-28 18:43:32)

Similar Messages

  • Xmonad: explicite client border color by class name?

    Hi all,
    actually I'm doing some XMonad fine tuning.
    Despite to the standard normal and focused border colors, is there a way to define a border color for specific apps?
    I would like to have a launched program (with IM layout and shifted to a certain workspace) either showing no borders or one with a defined color (and optional border width).  Maybe it should be ignored from being master (and hence having focused border color), even if it is the only client on this workspace.
    Well, I looked up the contrib-stuff, hayoo, and hoogle, and searched the web a bit, yet without success ...

    Hi,
    You need to create a ejb-jar.xml and jboss.xml files to deploy the application on the servers.
    Also, put these lines of codes after getting System Properties.
    prop.put(Context.PROVIDER_URL, "iiop://localhost:[port_no]");Thanks,
    Srikant

  • Why Firefox is changing the main window border color by itself ?

    I´m using Windows vista home premium.
    I´m using Firefox with Aero theme.
    my defaults windows are all with black borders.
    Few days ago only Fire fox decides by itselft to change the window border from black to light blue !!!
    It is very boring because it is only Fire Fox that is acting like that.
    I want to use it with black borders.
    Every time, I need to close Fire Fox to start using with normal colors... and sudenly, its changes again from black to blue...
    Please help.
    == This happened ==
    Every time Firefox opened
    == few minutes after firefox is running...couple of days ago...

    I tried this, but the problem still exists. I pretty much expected this, because the only window that ever shows this problem is Firefox (and particularly the Firefox window that has had focus for a very long time). I'm pretty sure that it doesn't have anything to do with Windows Aero appearance settings. The time to failure is really strange also . . . I have tried to determine if it happens after returning from the screen saver, or returning from S3, but it doesn't seem to be tied to either of those events. It just seems to happen after x amount of time that the browser window is open. (I am not obsessed with it enough to have tried to figure out what x is : )
    For what it's worth, I'm seeing this problem on multiple systems that are running Windows 7, not Vista. Again, it's more of an annoyance than anything else, but it does seem to be associated with the Firefox browser window that has focus.
    Hope this helps.

  • Set border color of editable ComboBox on focus

    What I want to do, is set BorderBrush of editable ComboBox. I'm using slightly modified default WPF templates. They are structured like below:
    <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
    <Grid x:Name="templateRoot" ...>
    <ToggleButton x:Name="toggleButton" ... />
    <Border x:Name="border" ...>
    <TextBox x:Name="PART_EditableTextBox" ... />
    <!-- textbox with IsFocused property which should be focus trigger -->
    </Border>
    </Grid>
    </ControlTemplate>
    ToggleButton template:
    <ControlTemplate TargetType="{x:Type ToggleButton}">
    <Border x:Name="templateRoot" ...> <!-- first border brush I want to set on focus -->
    <Border x:Name="innerBorder" ...> <!-- second border brush I want to set on focus -->
    <Border x:Name="splitBorder" ...>
    <Path x:Name="arrow" ... />
    </Border>
    </Border>
    </Border>
    </ControlTemplate>
    And now, what should happen.
    When PART_EditableTextBox.IsFocused is equal to true then set
    templateRoot.BorderBrush and innerBorder.BorderBrush to another color (for example red and blue).
    It would be very simple if there was only one BorderBrush to set, because I could use
    TemplateBinding to bind this property to ToggleButton element.
    For me, the problem are nested templates. I don't know how to refer to inside of another template.
    I hope you can help me.
    It would be very good if I didn't need to use C# code, just XAML.

    >>I don't know how to refer to inside of another template.
    You cannot. But since the PART_EditableTextBox is part of the ControlTemplate of the ComboBox you could add the trigger to this control template and then for example set the BorderBrush property and the Background propery of the ToggleButton and bind these
    to the BorderBrush properties of the Borders in its ControlTemplate:
    <ControlTemplate x:Key="ComboBoxEditableTemplate" TargetType="{x:Type ComboBox}">
    <TextBox x:Name="PART_EditableTextBox" ... />
    <ToggleButton x:Name="toggleButton" ... />
    <ControlTemplate.Triggers>
    <Trigger Property="IsFocused" Value="True" SourceName="PART_EditableTextBox">
    <Setter Property="BorderBrush" TargetName="toggleButton" Value="Red"/>
    <Setter Property="Background" TargetName="toggleButton" Value="Blue" />
    </Trigger>
    </ControlTemplate.Triggers>
    <Style x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
    <Setter Property="OverridesDefaultStyle" Value="true"/>
    <Setter Property="IsTabStop" Value="false"/>
    <Setter Property="Focusable" Value="false"/>
    <Setter Property="ClickMode" Value="Press"/>
    <Setter Property="Template">
    <Setter.Value>
    <ControlTemplate TargetType="{x:Type ToggleButton}">
    <Border x:Name="templateRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="2">
    <Border x:Name="innerBorder" BorderBrush="{TemplateBinding Background}" BorderThickness="2">
    <Border x:Name="splitBorder">
    <Path x:Name="Arrow" Data="{StaticResource DownArrowGeometry}"
    Fill="Black" HorizontalAlignment="Center" Margin="0,1,0,0" VerticalAlignment="Center"/>
    </Border>
    </Border>
    </Border>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>
    If you don't want to use the Background property for this, the other option is to create your own custom class that derives from the ToggleButton class and add a dependency property called "InnerBackground" or something to this class and replace
    the ToggleButton with your custom ToggleButton and replace the binding to the Background property with a binding to the new dependency property and set this one in the control template for the ComboBox.
    Hope that helps.
    Please remember to close your threads by marking helpful posts as answer and/or helpful and please start a new thread if you have a new question.

  • How to create a window with its own window border other than the local system window border?

    How to create a window with its own window border other than the local system window border?
    For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
    In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.

    Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
    import javafx.application.Application;
    import javafx.application.Platform;
    import javafx.beans.property.ObjectProperty;
    import javafx.beans.property.SimpleObjectProperty;
    import javafx.collections.FXCollections;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.geometry.Point2D;
    import javafx.geometry.Pos;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ChoiceBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.layout.StackPane;
    import javafx.scene.layout.VBox;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    public class CustomBorderExample extends Application {
      @Override
      public void start(Stage primaryStage) {
      AnchorPane root = new AnchorPane();
      root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
      enableDragging(root);
      StackPane mainContainer = new StackPane();
        AnchorPane.setTopAnchor(mainContainer, 5.0);
        AnchorPane.setLeftAnchor(mainContainer, 5.0);
        AnchorPane.setRightAnchor(mainContainer, 5.0);
        AnchorPane.setBottomAnchor(mainContainer, 5.0);
      mainContainer.setStyle("-fx-background-color: aliceblue;");
      root.getChildren().add(mainContainer);
      primaryStage.initStyle(StageStyle.TRANSPARENT);
      final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
      final Button closeButton = new Button("Close");
      VBox vbox = new VBox(10);
      vbox.setAlignment(Pos.CENTER);
      vbox.getChildren().addAll(choiceBox, closeButton);
      mainContainer.getChildren().add(vbox);
        closeButton.setOnAction(new EventHandler<ActionEvent>() {
          @Override
          public void handle(ActionEvent event) {
            Platform.exit();
      primaryStage.setScene(new Scene(root,  300, 200, Color.TRANSPARENT));
      primaryStage.show();
      private void enableDragging(final Node n) {
       final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
       n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(new Point2D(event.getX(), event.getY()));
       n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            mouseAnchor.set(null);
       n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
          @Override
          public void handle(MouseEvent event) {
            Point2D anchor = mouseAnchor.get();
            Scene scene = n.getScene();
            Window window = null ;
            if (scene != null) {
              window = scene.getWindow();
            if (anchor != null && window != null) {
              double deltaX = event.getX()-anchor.getX();
              double deltaY = event.getY()-anchor.getY();
              window.setX(window.getX()+deltaX);
              window.setY(window.getY()+deltaY);
      public static void main(String[] args) {
      launch(args);

  • Ratpoison border color

    Well, I dabbled in openbox and fluxbox for a while, but have switched back to ratpoison 'cos despite its flaws, its mouseless charm is lovable
    Anyway, although I haven't changed my ratpoisonrc from before, my border around urxvt is now white instead of black, and I don't know why... the border is black around firefox, as desired, but  the border is either white or transparent around urxvt.
    The Xdefaults options I have affecting urxvt are:
    *foreground: #B0B0B0
    ! Green
    !*background: #202f37
    !*background: #20372f
    ! Brown
    !*background: #372f20
    ! Blue
    !*background: #101520
    !*background: #151825
    *background: #232b42
    ! Black + DarkGrey
    *color0: #000000
    *color8: #666666
    ! DarkRed + Red
    *color1: #b45151
    *color9: #fe8686
    ! DarkGreen + Green
    *color2: #aece92
    *color10: #97fa97
    ! DarkYellow + Yellow
    *color3: Khaki3
    *color11: #efe58b
    ! DarkBlue + Blue
    *color4: #2797d8
    *color12: #86cdea
    ! DarkMangenta + Mangenta
    *color5: #aa6eaf
    *color13: #cb96ce
    !DarkCyan + Cyan
    *color6: #418179
    *color14: #71bebe
    ! LightGrey + White
    *color7: #bebebe
    *color15: #ffffff
    *saveLines: 32767
    *scrollTtyKeypress:true
    *scrollTtyOutput: false
    *scrollBar: false
    *internalBorder: 20
    urxvt*loginShell: true
    urxvt*termName: rxvt-unicode
    urxvt*inheritPixmap: true
    urxvt*shading: 40
    urxvt*font: xft:Bitstream Vera Sans Mono:pixelsize=11
    urxvt*tintColor: #405070
    Even when I get rid of the most likely culprits - *inheritPixmap, *shading, *tintColor and *internalBorder, the border still remains invisible.
    So my main problem is getting the border back around urxvt 
    Also though, is it possible to change the border color in ratpoison? I spent hours customising my .rc for it, and never found an option to alter the border color...
    I wouldn't even be bothered about having a border tbh, but urxvt won't sit right up against the screen edges, despite ratpoison's padding being 0. It won't even work when  urxvt's *externalBorder: 0 is set in Xdefaults.

    Komodo wrote:at least you can usually track down the cause of every problem you find, since you're sufficiently knowledgeable.
    Very OT:
    When it comes to schooling, I have a degree in Computer Engineering.  That is, basically an Electrical Engineering degree, with low level programming (I can recall using 7 different assembly flavors, along with C and C++, not to mention design languages such as Verilog and VHDL, plus matlab).  Most people in the field that I actually work in are Computer Scientists.  Now, the difference when it comes to knowledge usually isn't that great.  People know how to code fairly well.  However, when it comes to methodology, I feel that the engineering disciplines are superior.
    Most engineering training, from a general standpoint, is all about diagnosis of an issue.  A lot of time is spent dealing with design from a *generic* point of view.  It may be "design a bridge for this ravine" or "design a 128bit ALU" or "design an algorithm that computes the number of LEDs lit up".  In most engineering disciplines, this methodology is the same.  You go about it the same way.
    When it comes to Computer Science, it seems the methodology is left out, and people tend to come into the "real world" with this understanding that there is no general way to do something.  You design using UML and Use Cases and that's it.
    It's the same when it comes to 'fixing' something.  Fixing a problem is really just re-designing the original solution (the original solution was a 'fix' for something anyway, wasn't it?).  I find myself to have very good skills when it comes to diagnosing issues, and am usually pretty quick about it.  That said, there is knowledge of the task at hand involved - I know, from a generic overview, how window managers work (hell, I've written a few mini ones just to get a feel for it), and thus can 're-design' the color handling fairly easilly.
    I wish Computer Science would grasp the methodologies used in the engineering disciplines... it pays alot.

  • Set control border color for tabbing

    Is there a way to set the color of the border when tabbing through controls? Right now I have a darker background so it doesn't do much good to be tabbing through enum and ring dropdowns when you can't tell which is selected because the border is black.
    CLA, LabVIEW Versions 2010-2013

    Here is a post that talks about how to hide the key focus:
    http://forums.ni.com/t5/LabVIEW/How-do-I-get-rid-o​f-the-Key-Focus-object-border/m-p/844383
    Maybe Label.TextColor can be changed when the focus is on the numeric control or blink the control.
    Jst some ideas until border color change is provided in LV.
    CLD,CTD

  • Cfwindow header border-color

    I seem to be having difficulty changing the border color of the header of a cfwindow. No matter what attribute I set the left and right border of the header will not change to the color I want. I want the header to be all black but I still get a gray line on the left and right side. My code looks like this:
    headerstyle="background-color:##000000;font-family:Arial; font-size:13px;color;border-left:##000000;border-right:##000000"
    Why won't the sides of the header turn black?

    No one has responded, however I have determined the only true way to get everything to match a theme is to tunnel down in the asset folders and edit/replace the graphics used to created the window frame.  Attributes and CSS can't touch all the elements.  So, there you have it.

  • TableView selection border color CSS

    All how do I change the border colour when you select a table?

    Maybe you mean the border applied to the table when the table has focus?
    In which case the css below will give the table an indigo border when it is focused.
    .table-view:focused { -fx-background-color: indigo,-fx-box-border,-fx-control-inner-background; }Not quite sure what "select" means in this context and if you are interested in the border of the entire table or the border of a selected row.
    Anyway, changing those other things is just a matter of tweaking different css styles.

  • Border Color in CS5 - Gone?

    I just installed CS5.  What happened to the color picker for table border color.  I see the background color picker but no border color picker?  Is there somewhere in preferences or something to find this?  If not, is there an extension that can be added? 
    Thanks

    The border-color attribute is not a part of HTML and has never been, even though some early browsers chose to support it.  DW is now very focused on writing valid HTML in your pages, hence its removal.  As Ken suggests, the proper way to style any element's borders is to use CSS.

  • Need help changing the window border in OPENBOX

    Can somebody help me change the window border in openbox, I have already used obconf but I don't like the way there borders look, does any one now of any other programs that can change the window border?

    To remove the pink, right click on your desktop, select properties, settings, and change your color bit from 16 to 32.

  • Changing border color, and caption imagesize

    Is i possible to change the size of the captionbar in a JFrame window? And also change the color of the JFrame window? If it's possible, please point me in the right direction!
    //George.F

    Hi all,
    I have opened the .pdf file with designer(open with), and I was trying to change the border color. But when I opened the .xdp file with designer, it was working perfectly. Other look & feel issues also solved automatically.
    Thanks,
    Prabhakar.

  • Window border transparency

    Hi
    By default, Windows 8 has a transparent taskbar, but the Window-borders are not transparent.
    The dialog for the apperance of the taskbar - and Window-borders color only has the possibility, to change the color, but not the transparency.
    Where do I switch on transparency of the Window-border?
    Patrick

    Hi,
    According to your description, I understand that you want the glass-like transparent windows feature in windows 8. I will help you with this issue.
    I would like to let you know that Aero feature or Aero glass is not a part of Windows 8 anymore. The new windows elements are rendered in solid colors instead.
    If you need further assistance on this particular issue or any other Windows related issue, let us know and we will be glad to assist you.

  • Wpf Text Box , Is set to mandatory and need to change border color .

    Hi,
    In wpf application . We a text box as mandatory and set the border color as red . We need to change the color to black when user enter values .
    How to do that in xaml page .
    Thank YOu

    Hi Jeevan,
    you could use a Style with a trigger for that.
    <Window x:Class="WpfApplication1.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainWindow" Height="350" Width="525">
    <Window.Resources>
    <Style TargetType="TextBox" x:Key="TextBoxMandatoryStyle">
    <Style.Triggers>
    <Trigger Property="Text" Value="">
    <Setter Property="BorderBrush" Value="Red"/>
    </Trigger>
    </Style.Triggers>
    </Style>
    </Window.Resources>
    <Grid>
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <TextBox Grid.Row="0" Style="{StaticResource TextBoxMandatoryStyle}"/>
    <TextBox Grid.Row="1" Style="{StaticResource TextBoxMandatoryStyle}"/>
    <TextBox Grid.Row="2" />
    </Grid>
    </Window>
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest Pluralsight-courses:
    XAML Layout in Depth
    Windows Store Apps - Data Binding in Depth
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com

  • How do I change an image border color to another color - Dreamweaver CS5?

    Good day,
    I have just learned how to add a border to an image with Dreamweaver CS5 within the Properties Inspector.
    After typing the width in pixels in the Border Text Field and pressing the Enter key, Dreamweaver created a black border.
    How do I change the image border color to another color?

    I added your suggested rule to the Style Sheet "in any order" as you explained. See the image below.
    However this did not change the image border from black to light blue. In fact, nothing changed.
    Nothing changed because the CSS that has been written into DW is incorrectly written.
    You want the following (exactly as written below)
    img {border: 4px solid #0062C8;}
    You've inadvertently wrapped the rule inside a #main_image container rendering it meaningless.
    It's easiest to go into Code View and change
    #main_image {
         img {border: 4px solid #0062C8;
    to
    img { border: 4px solid #0062C8; }
    The Property Inspector added a border exactly as I wanted it, other than the color I wanted the border to be. What is the use of this function in Property Inspector if it can add a border within Property Inspector but not let me change the COLOR of the black border that Property Inspector added, to another color?
    That's a deceptively simple, yet valid, question with a long answer.
    Back in the dark old days of web design web designers were restricted to inline HTML formatting which offered  border properties but no colors.
    CSS styling offers colors and more but has to be written differently.
    These days. it's best to avoid HTML formatting. Unfortunately border="4px" in the PI still allows it. But does not permit color.
    Does anyone else out there ever add color borders to their IMAGES (not the containing box for the image) ?
    Yes, using CSS.

Maybe you are looking for

  • [js] [cs3] hint needed: row height

    good afternoon (or what is it, whatever?!) there ! help to solve that plz, i have an insertion point in a cell / a cell selected in a big green table. i need to set the height of the row, that hosts that cell to a certain value. When it's done, i nee

  • Java receive files from different station ??

    Hi, I would like that a station can receive files from different stations in the same time. For that, I use multi-threading (with different socket TCP). I have just a problem, sometimes files received are empty or contains just the last line of file.

  • How it is possible to control torque of dc motor by 0 rpm

    I want to realise a stand to test elements to get the max torque. The elements do not rotate. My plan is to take a dc motor if it is necessary additional a gearbox and impact it up to breakdown. In fact controlling dc motors torqu sounds easy because

  • Apple TV won't connect to the iTunes store.

    At first, when I tried to access iTunes stores on my ATV to rent movies I got a message "iTunes Store is not currently available."  I tried signing out and back in, and resetting the device but nothing works. Now the Movie rental doesn't even show up

  • Postfix doesn't work for all email address

    Hi, I just installeled postfix and it worked well when I send emails to servers like gmail. However, when I send to outlook exchange servers, the command executes successfully but the email doesn't reach its destination. Any idea why?