Exemplo n.º 1
0
        public void SetSkin(JwSkinPackage pkg)
        {
            pkg.BindAndResize(BackgroundIcon, componentName, "background");
            pkg.BindHoverButton(PlayIcon, componentName, "playIcon", "playIconOver");
            pkg.BindHoverButton(MuteIcon, componentName, "muteIcon", "muteIconOver");
            pkg.BindAndResize(BufferIcon, componentName, "bufferIcon");

            var interval = pkg.GetSettingValue(componentName, "bufferinterval") ?? "100";
            var rotation = pkg.GetSettingValue(componentName, "bufferrotation") ?? "15";

            spinAnimation = new RotationAnimation(BufferIcon, TimeSpan.FromMilliseconds(double.Parse(interval)), double.Parse(rotation));

            PlayIcon.Clicked += PlayIconClicked;
        }
Exemplo n.º 2
0
        public void SetSkin(JwSkinPackage pkg)
        {
            GetBackground(pkg);
            LayoutRoot.SizeChanged+=LayoutRoot_SizeChanged;

            var baseColor = pkg.GetSettingValue("frontcolor");
            ControlbarOverMargin = double.Parse(pkg.GetSettingValue(ControlBarComponent, "margin") ?? "0.0");
            TargetFontSize = double.Parse(pkg.GetSettingValue(ControlBarComponent, "fontsize") ?? "10.0");
            FontColour = (pkg.GetSettingValue(ControlBarComponent, "fontcolor") ?? baseColor ?? "0xffffff").HexToColor();

            var layout = new ControlBarLayout(pkg);
            BuildControls(pkg, layout);

            UpdateFullScreenButtonState(null, null);
            UpdateSoundButtonState();
            UpdatePlaylistButtonVisibility();
            ShowPlayButton();
            PaddingBorder.Padding = new Thickness(ControlbarOverMargin);
        }
Exemplo n.º 3
0
        public void SetSkin(JwSkinPackage pkg)
        {
            SetImages(
                pkg.GetNamedElement(PlaylistComponent, "item"),
                pkg.GetNamedElement(PlaylistComponent, "itemActive"),
                pkg.GetNamedElement(PlaylistComponent, "itemOver"),
                pkg.GetNamedElement(PlaylistComponent, "itemImage"));

            var outHex = pkg.GetSettingValue(PlaylistComponent, "fontcolor") ?? "0xffffff";
            outColor = (outHex).HexToColor();
            overColor = (pkg.GetSettingValue(PlaylistComponent, "overcolor") ?? outHex).HexToColor();
            activeColor = (pkg.GetSettingValue(PlaylistComponent, "activecolor") ?? outHex).HexToColor();
        }
Exemplo n.º 4
0
        public void SetSkin(JwSkinPackage pkg)
        {
            skinPackage = pkg;

            pkg.BindHoverButton(CaptionsButton, "dock", "button", "buttonOver");
            CaptionsButton.BadgeImage = pkg.GetNamedElement("captions", "dockIcon");
            CaptionsButton.CaptionText = "Subtitles\r\nOn";
            CaptionsButton.CaptionColor = (pkg.GetSettingValue("dock", "fontcolor") ?? "0xffffff").HexToColor();
        }